diff options
-rw-r--r-- | drivers/hwmon/pc87360.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/hwmon/pc87360.c b/drivers/hwmon/pc87360.c index c80ee5f056ba..7153b630ad4c 100644 --- a/drivers/hwmon/pc87360.c +++ b/drivers/hwmon/pc87360.c | |||
@@ -75,7 +75,8 @@ MODULE_PARM_DESC(force_id, "Override the detected device ID"); | |||
75 | #define FSCM 0x09 /* Logical device: fans */ | 75 | #define FSCM 0x09 /* Logical device: fans */ |
76 | #define VLM 0x0d /* Logical device: voltages */ | 76 | #define VLM 0x0d /* Logical device: voltages */ |
77 | #define TMS 0x0e /* Logical device: temperatures */ | 77 | #define TMS 0x0e /* Logical device: temperatures */ |
78 | static const u8 logdev[3] = { FSCM, VLM, TMS }; | 78 | #define LDNI_MAX 3 |
79 | static const u8 logdev[LDNI_MAX] = { FSCM, VLM, TMS }; | ||
79 | 80 | ||
80 | #define LD_FAN 0 | 81 | #define LD_FAN 0 |
81 | #define LD_IN 1 | 82 | #define LD_IN 1 |
@@ -1074,7 +1075,7 @@ static int __devinit pc87360_probe(struct platform_device *pdev) | |||
1074 | mutex_init(&data->update_lock); | 1075 | mutex_init(&data->update_lock); |
1075 | platform_set_drvdata(pdev, data); | 1076 | platform_set_drvdata(pdev, data); |
1076 | 1077 | ||
1077 | for (i = 0; i < 3; i++) { | 1078 | for (i = 0; i < LDNI_MAX; i++) { |
1078 | if (((data->address[i] = extra_isa[i])) | 1079 | if (((data->address[i] = extra_isa[i])) |
1079 | && !request_region(extra_isa[i], PC87360_EXTENT, | 1080 | && !request_region(extra_isa[i], PC87360_EXTENT, |
1080 | pc87360_driver.driver.name)) { | 1081 | pc87360_driver.driver.name)) { |