summaryrefslogtreecommitdiff
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorJohannes Thumshirn <johannes.thumshirn@men.de>2014-10-16 13:07:51 (GMT)
committerGuenter Roeck <linux@roeck-us.net>2014-10-20 01:41:18 (GMT)
commit3d5960472de0a245c56ba55e9a59b8d0f4c69cb4 (patch)
treee58dbe8e4e92fbb7b68fa6bc8ac3d385a2aae079 /drivers/hwmon
parentf114040e3ea6e07372334ade75d1ee0775c355e1 (diff)
downloadlinux-3d5960472de0a245c56ba55e9a59b8d0f4c69cb4.tar.xz
hwmon: (menf21bmc) Include linux/err.h
Include linux/err.h to get the definitions for IS_ERR() PTR_ERR() and ERR_PTR() used in the driver. This fixes compilation on powerpc targets. Signed-off-by: Johannes Thumshirn <johannes.thumshirn@men.de> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/menf21bmc_hwmon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwmon/menf21bmc_hwmon.c b/drivers/hwmon/menf21bmc_hwmon.c
index c92229d..afc6b58 100644
--- a/drivers/hwmon/menf21bmc_hwmon.c
+++ b/drivers/hwmon/menf21bmc_hwmon.c
@@ -21,6 +21,7 @@
#include <linux/jiffies.h>
#include <linux/slab.h>
#include <linux/i2c.h>
+#include <linux/err.h>
#define DRV_NAME "menf21bmc_hwmon"