mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 07:04:24 +00:00
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>
This commit is contained in:
parent
9de72ee590
commit
35acfdd725
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue