diff options
author | Jean Delvare <khali@linux-fr.org> | 2012-10-10 09:25:56 -0400 |
---|---|---|
committer | Jean Delvare <khali@endymion.delvare> | 2012-10-10 09:25:56 -0400 |
commit | fa845740cbc565d8f52c32973bb598743eb0d995 (patch) | |
tree | 6015e01b2858271ccdbb5dd20f7996eff585db47 /drivers/hwmon | |
parent | dcd8f39230b9f724ba4f55f14ed2bb8119204385 (diff) |
hwmon: Add missing inclusions of <linux/err.h>
These drivers use IS_ERR so they should include <linux/err.h>.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Luca Tettamanti <kronos.it@gmail.com>
Cc: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/acpi_power_meter.c | 1 | ||||
-rw-r--r-- | drivers/hwmon/applesmc.c | 1 | ||||
-rw-r--r-- | drivers/hwmon/asus_atk0110.c | 1 | ||||
-rw-r--r-- | drivers/hwmon/ibmaem.c | 1 | ||||
-rw-r--r-- | drivers/hwmon/ibmpex.c | 1 | ||||
-rw-r--r-- | drivers/hwmon/ultra45_env.c | 1 |
6 files changed, 6 insertions, 0 deletions
diff --git a/drivers/hwmon/acpi_power_meter.c b/drivers/hwmon/acpi_power_meter.c index 23ab3c496b05..1672e2a5db46 100644 --- a/drivers/hwmon/acpi_power_meter.c +++ b/drivers/hwmon/acpi_power_meter.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <linux/kdev_t.h> | 29 | #include <linux/kdev_t.h> |
30 | #include <linux/sched.h> | 30 | #include <linux/sched.h> |
31 | #include <linux/time.h> | 31 | #include <linux/time.h> |
32 | #include <linux/err.h> | ||
32 | #include <acpi/acpi_drivers.h> | 33 | #include <acpi/acpi_drivers.h> |
33 | #include <acpi/acpi_bus.h> | 34 | #include <acpi/acpi_bus.h> |
34 | 35 | ||
diff --git a/drivers/hwmon/applesmc.c b/drivers/hwmon/applesmc.c index 8f3f6f2c45fd..b41baffa20f0 100644 --- a/drivers/hwmon/applesmc.c +++ b/drivers/hwmon/applesmc.c | |||
@@ -43,6 +43,7 @@ | |||
43 | #include <linux/leds.h> | 43 | #include <linux/leds.h> |
44 | #include <linux/hwmon.h> | 44 | #include <linux/hwmon.h> |
45 | #include <linux/workqueue.h> | 45 | #include <linux/workqueue.h> |
46 | #include <linux/err.h> | ||
46 | 47 | ||
47 | /* data port used by Apple SMC */ | 48 | /* data port used by Apple SMC */ |
48 | #define APPLESMC_DATA_PORT 0x300 | 49 | #define APPLESMC_DATA_PORT 0x300 |
diff --git a/drivers/hwmon/asus_atk0110.c b/drivers/hwmon/asus_atk0110.c index c74b1d931854..56dbcfb3e301 100644 --- a/drivers/hwmon/asus_atk0110.c +++ b/drivers/hwmon/asus_atk0110.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/slab.h> | 15 | #include <linux/slab.h> |
16 | #include <linux/dmi.h> | 16 | #include <linux/dmi.h> |
17 | #include <linux/jiffies.h> | 17 | #include <linux/jiffies.h> |
18 | #include <linux/err.h> | ||
18 | 19 | ||
19 | #include <acpi/acpi.h> | 20 | #include <acpi/acpi.h> |
20 | #include <acpi/acpixf.h> | 21 | #include <acpi/acpixf.h> |
diff --git a/drivers/hwmon/ibmaem.c b/drivers/hwmon/ibmaem.c index 37f17e0d9d5d..a14f634248e7 100644 --- a/drivers/hwmon/ibmaem.c +++ b/drivers/hwmon/ibmaem.c | |||
@@ -36,6 +36,7 @@ | |||
36 | #include <linux/platform_device.h> | 36 | #include <linux/platform_device.h> |
37 | #include <linux/math64.h> | 37 | #include <linux/math64.h> |
38 | #include <linux/time.h> | 38 | #include <linux/time.h> |
39 | #include <linux/err.h> | ||
39 | 40 | ||
40 | #define REFRESH_INTERVAL (HZ) | 41 | #define REFRESH_INTERVAL (HZ) |
41 | #define IPMI_TIMEOUT (30 * HZ) | 42 | #define IPMI_TIMEOUT (30 * HZ) |
diff --git a/drivers/hwmon/ibmpex.c b/drivers/hwmon/ibmpex.c index 41dbf8161ed7..b622a93ec32c 100644 --- a/drivers/hwmon/ibmpex.c +++ b/drivers/hwmon/ibmpex.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <linux/jiffies.h> | 26 | #include <linux/jiffies.h> |
27 | #include <linux/mutex.h> | 27 | #include <linux/mutex.h> |
28 | #include <linux/slab.h> | 28 | #include <linux/slab.h> |
29 | #include <linux/err.h> | ||
29 | 30 | ||
30 | #define REFRESH_INTERVAL (2 * HZ) | 31 | #define REFRESH_INTERVAL (2 * HZ) |
31 | #define DRVNAME "ibmpex" | 32 | #define DRVNAME "ibmpex" |
diff --git a/drivers/hwmon/ultra45_env.c b/drivers/hwmon/ultra45_env.c index c315c59f61fe..44136bb6d045 100644 --- a/drivers/hwmon/ultra45_env.c +++ b/drivers/hwmon/ultra45_env.c | |||
@@ -12,6 +12,7 @@ | |||
12 | #include <linux/io.h> | 12 | #include <linux/io.h> |
13 | #include <linux/hwmon.h> | 13 | #include <linux/hwmon.h> |
14 | #include <linux/hwmon-sysfs.h> | 14 | #include <linux/hwmon-sysfs.h> |
15 | #include <linux/err.h> | ||
15 | 16 | ||
16 | #define DRV_MODULE_VERSION "0.1" | 17 | #define DRV_MODULE_VERSION "0.1" |
17 | 18 | ||