aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorYoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>2006-07-14 12:30:11 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2006-09-26 00:08:39 -0400
commit35acfdd7253025e8441883fd8f879f5240844f95 (patch)
treed1fb2d170964572c4b5446f73a44db88599c0e46 /drivers/base
parent9de72ee59029087fc8300633113c75a5fe73a7b8 (diff)
Driver core: fixed add_bind_files() definition
When CONFIG_HOTPLUG is n, add_bind_files() definition is wrong. This patch has fixed it. Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/bus.c b/drivers/base/bus.c
index 2e954d07175a..4d22a1d10a1c 100644
--- a/drivers/base/bus.c
+++ b/drivers/base/bus.c
@@ -467,7 +467,7 @@ static void remove_bind_files(struct device_driver *drv)
467 driver_remove_file(drv, &driver_attr_unbind); 467 driver_remove_file(drv, &driver_attr_unbind);
468} 468}
469#else 469#else
470static inline void add_bind_files(struct device_driver *drv) {} 470static inline int add_bind_files(struct device_driver *drv) { return 0; }
471static inline void remove_bind_files(struct device_driver *drv) {} 471static inline void remove_bind_files(struct device_driver *drv) {}
472#endif 472#endif
473 473