hwmon: max17135: Added linux/mod_devicetable.h
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 <vipul_kumar@mentor.com>5.4-rM2-2.2.x-imx-squashed
parent
16d0d9837e
commit
6d06039776
|
@ -26,6 +26,7 @@
|
|||
#include <linux/sysfs.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/mfd/max17135.h>
|
||||
#include <linux/mod_devicetable.h>
|
||||
|
||||
/*
|
||||
* Conversions
|
||||
|
|
Loading…
Reference in New Issue