Commit e03a933d authored by Patrick Mochel's avatar Patrick Mochel

[PATCH] driver model updates (1/5)

Patch 1: Make device_driver_init() an initcall.
It declares it as subsys_initcall and removes the explicit call from
init/main.c::do_basic_setup().
parent 0fbfdf4b
...@@ -183,7 +183,7 @@ static int __init device_init_root(void) ...@@ -183,7 +183,7 @@ static int __init device_init_root(void)
return iobus_register(&device_root); return iobus_register(&device_root);
} }
int __init device_driver_init(void) static int __init device_driver_init(void)
{ {
int error = 0; int error = 0;
...@@ -208,8 +208,9 @@ int __init device_driver_init(void) ...@@ -208,8 +208,9 @@ int __init device_driver_init(void)
return error; return error;
} }
subsys_initcall(device_driver_init);
EXPORT_SYMBOL(device_register); EXPORT_SYMBOL(device_register);
EXPORT_SYMBOL(put_device); EXPORT_SYMBOL(put_device);
EXPORT_SYMBOL(iobus_register); EXPORT_SYMBOL(iobus_register);
EXPORT_SYMBOL(put_iobus); EXPORT_SYMBOL(put_iobus);
EXPORT_SYMBOL(device_driver_init);
...@@ -163,9 +163,6 @@ extern int (*platform_notify)(struct device * dev); ...@@ -163,9 +163,6 @@ extern int (*platform_notify)(struct device * dev);
extern int (*platform_notify_remove)(struct device * dev); extern int (*platform_notify_remove)(struct device * dev);
extern int device_driver_init(void);
/* device and bus locking helpers. /* device and bus locking helpers.
* *
* FIXME: Is there anything else we need to do? * FIXME: Is there anything else we need to do?
......
...@@ -31,8 +31,6 @@ ...@@ -31,8 +31,6 @@
#include <asm/io.h> #include <asm/io.h>
#include <asm/bugs.h> #include <asm/bugs.h>
#include <linux/device.h>
#if defined(CONFIG_ARCH_S390) #if defined(CONFIG_ARCH_S390)
#include <asm/s390mach.h> #include <asm/s390mach.h>
#include <asm/ccwcache.h> #include <asm/ccwcache.h>
...@@ -446,10 +444,6 @@ static void __init do_basic_setup(void) ...@@ -446,10 +444,6 @@ static void __init do_basic_setup(void)
#if defined(CONFIG_ARCH_S390) #if defined(CONFIG_ARCH_S390)
s390_init_machine_check(); s390_init_machine_check();
#endif #endif
/* bring up the device tree */
device_driver_init();
/* Networking initialization needs a process context */ /* Networking initialization needs a process context */
sock_init(); sock_init();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment