Commit 5d9adefc authored by Linus Torvalds's avatar Linus Torvalds

Merge branch 'release' of git://lm-sensors.org/kernel/mhoffman/hwmon-2.6

* 'release' of git://lm-sensors.org/kernel/mhoffman/hwmon-2.6:
  hwmon: End of I/O region off-by-one
parents 1e3cbe4c 15bde2f1
...@@ -882,7 +882,7 @@ static int __init lm78_isa_device_add(unsigned short address) ...@@ -882,7 +882,7 @@ static int __init lm78_isa_device_add(unsigned short address)
{ {
struct resource res = { struct resource res = {
.start = address, .start = address,
.end = address + LM78_EXTENT, .end = address + LM78_EXTENT - 1,
.name = "lm78", .name = "lm78",
.flags = IORESOURCE_IO, .flags = IORESOURCE_IO,
}; };
......
...@@ -1746,7 +1746,7 @@ w83781d_isa_device_add(unsigned short address) ...@@ -1746,7 +1746,7 @@ w83781d_isa_device_add(unsigned short address)
{ {
struct resource res = { struct resource res = {
.start = address, .start = address,
.end = address + W83781D_EXTENT, .end = address + W83781D_EXTENT - 1,
.name = "w83781d", .name = "w83781d",
.flags = IORESOURCE_IO, .flags = IORESOURCE_IO,
}; };
......
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