Skip to content

Commit 35acfdd

Browse files
Yoichi Yuasagregkh
Yoichi Yuasa
authored andcommitted
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 9de72ee commit 35acfdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/base/bus.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ static void remove_bind_files(struct device_driver *drv)
467467
driver_remove_file(drv, &driver_attr_unbind);
468468
}
469469
#else
470-
static inline void add_bind_files(struct device_driver *drv) {}
470+
static inline int add_bind_files(struct device_driver *drv) { return 0; }
471471
static inline void remove_bind_files(struct device_driver *drv) {}
472472
#endif
473473

0 commit comments

Comments
 (0)