hwmon: (menf21bmc) Include linux/err.h
authorJohannes Thumshirn <johannes.thumshirn@men.de>
Thu, 16 Oct 2014 13:07:51 +0000 (15:07 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 20 Oct 2014 01:41:18 +0000 (18:41 -0700)
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>
drivers/hwmon/menf21bmc_hwmon.c

index c92229d321c92c24c5686fd2a4beefd5d4baf6cf..afc6b58eaa625fa89a8c2022e9403699f539338e 100644 (file)
@@ -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"