stmmac: use resource_size()
authorDan Carpenter <error27@gmail.com>
Mon, 22 Mar 2010 02:11:11 +0000 (02:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Mar 2010 01:33:10 +0000 (18:33 -0700)
commit7c5365bca33194092e0a094b34b268283022a1a1
tree0b9aa0493c5b074c083d00ad218ff6053708273e
parentd2ba2ed8fe3aa796a671a6922119d7171bb49515
stmmac: use resource_size()

The size calculation is not correct.  It should be end - start + 1.
Use resource_size() to calculate it instead.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/stmmac/stmmac_main.c