Commit 35acfdd7 authored by Yoichi Yuasa's avatar Yoichi Yuasa Committed by Greg Kroah-Hartman

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: default avatarYoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 9de72ee5
...@@ -467,7 +467,7 @@ static void remove_bind_files(struct device_driver *drv) ...@@ -467,7 +467,7 @@ static void remove_bind_files(struct device_driver *drv)
driver_remove_file(drv, &driver_attr_unbind); driver_remove_file(drv, &driver_attr_unbind);
} }
#else #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) {} static inline void remove_bind_files(struct device_driver *drv) {}
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment