net: emaclite: Use resource_size
authorTobias Klauser <tklauser@distanz.ch>
Wed, 5 May 2010 22:12:20 +0000 (22:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 May 2010 08:31:29 +0000 (01:31 -0700)
commit575400bf5d57f53a767bc215bd709e65e5b27a5c
treeb895be3ba73af562a624dfa564224471947e5f03
parent627c8a041f7aaaea93c766f69bd61d952a277586
net: emaclite: Use resource_size

Use the resource_size function instead of manually calculating the
resource size.  This reduces the chance of introducing off-by-one
errors.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xilinx_emaclite.c