diff options
Diffstat (limited to 'drivers/hwmon/lm78.c')
-rw-r--r-- | drivers/hwmon/lm78.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/lm78.c b/drivers/hwmon/lm78.c index 9fb572f03ba5..6eea3476b90c 100644 --- a/drivers/hwmon/lm78.c +++ b/drivers/hwmon/lm78.c | |||
@@ -864,7 +864,7 @@ static int __init lm78_isa_found(unsigned short address) | |||
864 | /* Determine the chip type */ | 864 | /* Determine the chip type */ |
865 | outb_p(LM78_REG_CHIPID, address + LM78_ADDR_REG_OFFSET); | 865 | outb_p(LM78_REG_CHIPID, address + LM78_ADDR_REG_OFFSET); |
866 | val = inb_p(address + LM78_DATA_REG_OFFSET); | 866 | val = inb_p(address + LM78_DATA_REG_OFFSET); |
867 | if (val == 0x00 /* LM78 */ | 867 | if (val == 0x00 || val == 0x20 /* LM78 */ |
868 | || val == 0x40 /* LM78-J */ | 868 | || val == 0x40 /* LM78-J */ |
869 | || (val & 0xfe) == 0xc0) /* LM79 */ | 869 | || (val & 0xfe) == 0xc0) /* LM79 */ |
870 | found = 1; | 870 | found = 1; |
@@ -882,7 +882,7 @@ static int __init lm78_isa_device_add(unsigned short address) | |||
882 | { | 882 | { |
883 | struct resource res = { | 883 | struct resource res = { |
884 | .start = address, | 884 | .start = address, |
885 | .end = address + LM78_EXTENT, | 885 | .end = address + LM78_EXTENT - 1, |
886 | .name = "lm78", | 886 | .name = "lm78", |
887 | .flags = IORESOURCE_IO, | 887 | .flags = IORESOURCE_IO, |
888 | }; | 888 | }; |