Driver core: fixed add_bind_files() definition
authorYoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Fri, 14 Jul 2006 16:30:11 +0000 (01:30 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 26 Sep 2006 04:08:39 +0000 (21:08 -0700)
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>
drivers/base/bus.c

index 2e954d07175a5c6d067531ac23d155c1a24d2d8d..4d22a1d10a1c5bda88c552edf6a80d6bdb299f88 100644 (file)
@@ -467,7 +467,7 @@ static void remove_bind_files(struct device_driver *drv)
        driver_remove_file(drv, &driver_attr_unbind);
 }
 #else
-static inline void add_bind_files(struct device_driver *drv) {}
+static inline int add_bind_files(struct device_driver *drv) { return 0; }
 static inline void remove_bind_files(struct device_driver *drv) {}
 #endif