cpmac: use resource_size()
authorDan Carpenter <[email protected]>
Wed, 30 Jun 2010 20:12:01 +0000 (13:12 -0700)
committerDavid S. Miller <[email protected]>
Wed, 30 Jun 2010 20:12:01 +0000 (13:12 -0700)
commit7e307c7ad5340b226966da6e564ec7f717da3adb
treef9e6d1a1fb34dc37cf45ac8dbf2c6eb45725ab74
parent504f85c9d05f7c605306e808f0d835fe11bfd18d
cpmac: use resource_size()

The original code is off by one because we should start counting at
zero.  So the size of the resource is end - start + 1.  I switched it to
use resource_size() to do the calculation.

Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/cpmac.c