diff options
author | Dave Airlie <airlied@redhat.com> | 2012-05-06 17:13:02 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-05-21 12:58:32 +0100 |
commit | 07dcc3f1a98dff2ee374a15ac5beac778d2ccc97 (patch) | |
tree | 31a8a1c8a49225d5ec883d74b64b8d6236917192 /config/config.c | |
parent | a2a02882ab65133e6c0c69db1f38bc20b406236f (diff) |
config/udev: add pre_init stage to config and udev.
In order to use udev for gpu enumeration, we need to init udev earlier
than input initialisations. This splits the config init stuff so that udev
pre init sets up before output initialisation.
this is just a prepatory patch, doesn't change anything major.
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'config/config.c')
-rw-r--r-- | config/config.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/config/config.c b/config/config.c index 2b96dbb74..24e7ba7a0 100644 --- a/config/config.c +++ b/config/config.c @@ -33,6 +33,15 @@ #include "config-backends.h" void +config_pre_init(void) +{ +#ifdef CONFIG_UDEV + if (!config_udev_pre_init()) + ErrorF("[config] failed to pre-init udev\n"); +#endif +} + +void config_init(void) { #ifdef CONFIG_UDEV |