Commit fa845740 authored by Jean Delvare's avatar Jean Delvare Committed by Jean Delvare

hwmon: Add missing inclusions of <linux/err.h>

These drivers use IS_ERR so they should include <linux/err.h>.
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Acked-by: default avatarGuenter Roeck <linux@roeck-us.net>
Acked-by: default avatarLuca Tettamanti <kronos.it@gmail.com>
Cc: Henrik Rydberg <rydberg@euromail.se>
parent dcd8f392
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#include <linux/kdev_t.h> #include <linux/kdev_t.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/time.h> #include <linux/time.h>
#include <linux/err.h>
#include <acpi/acpi_drivers.h> #include <acpi/acpi_drivers.h>
#include <acpi/acpi_bus.h> #include <acpi/acpi_bus.h>
......
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
#include <linux/leds.h> #include <linux/leds.h>
#include <linux/hwmon.h> #include <linux/hwmon.h>
#include <linux/workqueue.h> #include <linux/workqueue.h>
#include <linux/err.h>
/* data port used by Apple SMC */ /* data port used by Apple SMC */
#define APPLESMC_DATA_PORT 0x300 #define APPLESMC_DATA_PORT 0x300
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/dmi.h> #include <linux/dmi.h>
#include <linux/jiffies.h> #include <linux/jiffies.h>
#include <linux/err.h>
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include <acpi/acpixf.h> #include <acpi/acpixf.h>
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/math64.h> #include <linux/math64.h>
#include <linux/time.h> #include <linux/time.h>
#include <linux/err.h>
#define REFRESH_INTERVAL (HZ) #define REFRESH_INTERVAL (HZ)
#define IPMI_TIMEOUT (30 * HZ) #define IPMI_TIMEOUT (30 * HZ)
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include <linux/jiffies.h> #include <linux/jiffies.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/err.h>
#define REFRESH_INTERVAL (2 * HZ) #define REFRESH_INTERVAL (2 * HZ)
#define DRVNAME "ibmpex" #define DRVNAME "ibmpex"
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include <linux/io.h> #include <linux/io.h>
#include <linux/hwmon.h> #include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h> #include <linux/hwmon-sysfs.h>
#include <linux/err.h>
#define DRV_MODULE_VERSION "0.1" #define DRV_MODULE_VERSION "0.1"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment