aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/acpi/ibm_acpi.c4
-rw-r--r--include/linux/device.h2
-rw-r--r--init/main.c2
3 files changed, 5 insertions, 3 deletions
diff --git a/drivers/acpi/ibm_acpi.c b/drivers/acpi/ibm_acpi.c
index 003a9876c968..5a8445959f67 100644
--- a/drivers/acpi/ibm_acpi.c
+++ b/drivers/acpi/ibm_acpi.c
@@ -352,7 +352,7 @@ static char *next_cmd(char **cmds)
352 return start; 352 return start;
353} 353}
354 354
355static int driver_init(void) 355static int ibm_acpi_driver_init(void)
356{ 356{
357 printk(IBM_INFO "%s v%s\n", IBM_DESC, IBM_VERSION); 357 printk(IBM_INFO "%s v%s\n", IBM_DESC, IBM_VERSION);
358 printk(IBM_INFO "%s\n", IBM_URL); 358 printk(IBM_INFO "%s\n", IBM_URL);
@@ -1605,7 +1605,7 @@ static int fan_write(char *buf)
1605static struct ibm_struct ibms[] = { 1605static struct ibm_struct ibms[] = {
1606 { 1606 {
1607 .name = "driver", 1607 .name = "driver",
1608 .init = driver_init, 1608 .init = ibm_acpi_driver_init,
1609 .read = driver_read, 1609 .read = driver_read,
1610 }, 1610 },
1611 { 1611 {
diff --git a/include/linux/device.h b/include/linux/device.h
index 49ab53ce92dc..f44247fe8135 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -433,6 +433,8 @@ static inline int device_is_registered(struct device *dev)
433 return dev->is_registered; 433 return dev->is_registered;
434} 434}
435 435
436void driver_init(void);
437
436/* 438/*
437 * High level routines for use by the bus drivers 439 * High level routines for use by the bus drivers
438 */ 440 */
diff --git a/init/main.c b/init/main.c
index e3f0bb20b4dd..2b1cdaab45e6 100644
--- a/init/main.c
+++ b/init/main.c
@@ -53,6 +53,7 @@
53#include <linux/utsrelease.h> 53#include <linux/utsrelease.h>
54#include <linux/pid_namespace.h> 54#include <linux/pid_namespace.h>
55#include <linux/compile.h> 55#include <linux/compile.h>
56#include <linux/device.h>
56 57
57#include <asm/io.h> 58#include <asm/io.h>
58#include <asm/bugs.h> 59#include <asm/bugs.h>
@@ -94,7 +95,6 @@ extern void pidmap_init(void);
94extern void prio_tree_init(void); 95extern void prio_tree_init(void);
95extern void radix_tree_init(void); 96extern void radix_tree_init(void);
96extern void free_initmem(void); 97extern void free_initmem(void);
97extern void driver_init(void);
98extern void prepare_namespace(void); 98extern void prepare_namespace(void);
99#ifdef CONFIG_ACPI 99#ifdef CONFIG_ACPI
100extern void acpi_early_init(void); 100extern void acpi_early_init(void);