浏览代码

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>
Johannes Thumshirn 10 年之前
父节点
当前提交
3d5960472d
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/hwmon/menf21bmc_hwmon.c

+ 1 - 0
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"