Skip to content

Commit

Permalink
hwmon: (menf21bmc) Include linux/err.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Thumshirn authored and Guenter Roeck committed Oct 20, 2014
1 parent f114040 commit 3d59604
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/hwmon/menf21bmc_hwmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 3d59604

Please sign in to comment.