From 6d060397765563121b76a6d4089ac6329c326433 Mon Sep 17 00:00:00 2001 From: Vipul Kumar Date: Mon, 24 Dec 2018 10:45:47 +0530 Subject: [PATCH] hwmon: max17135: Added linux/mod_devicetable.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch added linux/mod_devicetable.h to fix the compilation error. drivers/hwmon/max17135-hwmon.c:57:40: error: array type has incomplete element type ‘struct platform_device_id’ static const struct platform_device_id max17135_sns_id[] = { ^~~~~~~~~~~~~~~ drivers/hwmon/max17135-hwmon.c:57:40: warning: ‘max17135_sns_id’ defined but not used [-Wunused-variable] scripts/Makefile.build:303: recipe for target 'drivers/hwmon/max17135-hwmon.o' failed make[2]: *** [drivers/hwmon/max17135-hwmon.o] Error 1 Signed-off-by: Vipul Kumar --- drivers/hwmon/max17135-hwmon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hwmon/max17135-hwmon.c b/drivers/hwmon/max17135-hwmon.c index 0cddef54ada2..b0a9ff432f9a 100644 --- a/drivers/hwmon/max17135-hwmon.c +++ b/drivers/hwmon/max17135-hwmon.c @@ -26,6 +26,7 @@ #include #include #include +#include /* * Conversions