1
0
Fork 0

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
Vipul Kumar 2018-12-24 10:45:47 +05:30 committed by Dong Aisheng
parent 16d0d9837e
commit 6d06039776
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@
#include <linux/sysfs.h>
#include <linux/platform_device.h>
#include <linux/mfd/max17135.h>
#include <linux/mod_devicetable.h>
/*
* Conversions