浏览代码

da9030_battery: Include notifier.h

randconfig complains about:
drivers/power/da9030_battery.c:113: error: field ‘nb’ has incomplete type

because there is no direct include for notifier.h which defines
struct notifier_block.

Signed-off-by: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
Michal Hocko 12 年之前
父节点
当前提交
7e6c647ed9
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/power/da9030_battery.c

+ 1 - 0
drivers/power/da9030_battery.c

@@ -22,6 +22,7 @@
 
 #include <linux/debugfs.h>
 #include <linux/seq_file.h>
+#include <linux/notifier.h>
 
 #define DA9030_FAULT_LOG		0x0a
 #define DA9030_FAULT_LOG_OVER_TEMP	(1 << 7)