瀏覽代碼

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>
Yoichi Yuasa 19 年之前
父節點
當前提交
35acfdd725
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/base/bus.c

+ 1 - 1
drivers/base/bus.c

@@ -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