stmmac: use resource_size()
commitb62226826b4ea1926b644b5a337ffa6b637d4870
authorDan Carpenter <error27@gmail.com>
Thu, 8 Apr 2010 04:50:08 +0000 (7 21:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Apr 2010 04:50:08 +0000 (7 21:50 -0700)
treeb71b2447cff878044a7afa54bb2cbf73219467a2
parentddd0451fc8dbf94446c81500ff0dcee06c4057cb
stmmac: use resource_size()

Resource size should be calculated as end - start + 1 because we start
counting at zero.  I changed the code to resource_size() to do the
calculation.

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