From: Adrian Bunk Add a prototype for driver_init() in include/linux/device.h. Also remove a static function of the same name in drivers/acpi/ibm_acpi.c to ibm_acpi_driver_init() to fix the namespace collision. Signed-off-by: Adrian Bunk Acked-by: Henrique de Moraes Holschuh Cc: Greg KH Signed-off-by: Andrew Morton --- drivers/acpi/ibm_acpi.c | 4 ++-- include/linux/device.h | 2 ++ init/main.c | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff -puN drivers/acpi/ibm_acpi.c~proper-prototype-for-drivers-base-initcdriver_init drivers/acpi/ibm_acpi.c --- a/drivers/acpi/ibm_acpi.c~proper-prototype-for-drivers-base-initcdriver_init +++ a/drivers/acpi/ibm_acpi.c @@ -493,7 +493,7 @@ static char *next_cmd(char **cmds) return start; } -static int driver_init(void) +static int ibm_acpi_driver_init(void) { printk(IBM_INFO "%s v%s\n", IBM_DESC, IBM_VERSION); printk(IBM_INFO "%s\n", IBM_URL); @@ -2297,7 +2297,7 @@ static void fan_watchdog_fire(struct wor static struct ibm_struct ibms[] = { { .name = "driver", - .init = driver_init, + .init = ibm_acpi_driver_init, .read = driver_read, }, { diff -puN /dev/null /dev/null diff -puN include/linux/device.h~proper-prototype-for-drivers-base-initcdriver_init include/linux/device.h --- a/include/linux/device.h~proper-prototype-for-drivers-base-initcdriver_init +++ a/include/linux/device.h @@ -433,6 +433,8 @@ static inline int device_is_registered(s return dev->is_registered; } +void driver_init(void); + /* * High level routines for use by the bus drivers */ diff -puN /dev/null /dev/null diff -puN init/main.c~proper-prototype-for-drivers-base-initcdriver_init init/main.c --- a/init/main.c~proper-prototype-for-drivers-base-initcdriver_init +++ a/init/main.c @@ -53,6 +53,7 @@ #include #include #include +#include #include #include @@ -94,7 +95,6 @@ extern void pidmap_init(void); extern void prio_tree_init(void); extern void radix_tree_init(void); extern void free_initmem(void); -extern void driver_init(void); extern void prepare_namespace(void); #ifdef CONFIG_ACPI extern void acpi_early_init(void); diff -puN /dev/null /dev/null _