diff options
author | Matthias Ludwig <mludwig@ultratronik.de> | 2009-05-07 18:00:12 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-05-07 18:00:12 -0400 |
commit | 928f308f556f4943e50c5064b546f47bce301f02 (patch) | |
tree | f564369bd51cdf8cb2e29aa6a4610d73cb052e92 /drivers/net/smsc911x.c | |
parent | c2d5ab4973bfaa72cbb677801825ce56c8f69b56 (diff) |
smsc911x: fix calculation of res_size for ioremap
fix size of remaped iomem, which is 1 byte to small
(e.g. mappes only 0xff bytes instead of 0x100)
Signed-off-by: Matthias Ludwig <mludwig@ultratronik.de>
Acked-by: Steve Glendinning <steve.glendinning@smsc.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/smsc911x.c')
-rw-r--r-- | drivers/net/smsc911x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/smsc911x.c b/drivers/net/smsc911x.c index 9a8528c5bb5e..3cff84078a9e 100644 --- a/drivers/net/smsc911x.c +++ b/drivers/net/smsc911x.c | |||
@@ -1976,7 +1976,7 @@ static int __devinit smsc911x_drv_probe(struct platform_device *pdev) | |||
1976 | retval = -ENODEV; | 1976 | retval = -ENODEV; |
1977 | goto out_0; | 1977 | goto out_0; |
1978 | } | 1978 | } |
1979 | res_size = res->end - res->start; | 1979 | res_size = res->end - res->start + 1; |
1980 | 1980 | ||
1981 | irq_res = platform_get_resource(pdev, IORESOURCE_IRQ, 0); | 1981 | irq_res = platform_get_resource(pdev, IORESOURCE_IRQ, 0); |
1982 | if (!irq_res) { | 1982 | if (!irq_res) { |