diff options
-rw-r--r-- | drivers/char/ipmi/ipmi_si_intf.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c index 094bdc355b1f..ff68e7c34ce7 100644 --- a/drivers/char/ipmi/ipmi_si_intf.c +++ b/drivers/char/ipmi/ipmi_si_intf.c | |||
@@ -2176,6 +2176,14 @@ static int __devinit ipmi_pnp_probe(struct pnp_dev *dev, | |||
2176 | info->io.addr_data = res->start; | 2176 | info->io.addr_data = res->start; |
2177 | 2177 | ||
2178 | info->io.regspacing = DEFAULT_REGSPACING; | 2178 | info->io.regspacing = DEFAULT_REGSPACING; |
2179 | res = pnp_get_resource(dev, | ||
2180 | (info->io.addr_type == IPMI_IO_ADDR_SPACE) ? | ||
2181 | IORESOURCE_IO : IORESOURCE_MEM, | ||
2182 | 1); | ||
2183 | if (res) { | ||
2184 | if (res->start > info->io.addr_data) | ||
2185 | info->io.regspacing = res->start - info->io.addr_data; | ||
2186 | } | ||
2179 | info->io.regsize = DEFAULT_REGSPACING; | 2187 | info->io.regsize = DEFAULT_REGSPACING; |
2180 | info->io.regshift = 0; | 2188 | info->io.regshift = 0; |
2181 | 2189 | ||