projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9de72ee
)
Driver core: fixed add_bind_files() definition
author
Yoichi Yuasa
<yoichi_yuasa@tripeaks.co.jp>
Fri, 14 Jul 2006 16:30:11 +0000
(
01:30
+0900)
committer
Greg 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/base/bus.c
b/drivers/base/bus.c
index 2e954d07175a5c6d067531ac23d155c1a24d2d8d..4d22a1d10a1c5bda88c552edf6a80d6bdb299f88 100644
(file)
--- a/
drivers/base/bus.c
+++ b/
drivers/base/bus.c
@@
-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