USB: gadget: imx_udc: Use resource size
authorTobias Klauser <tklauser@distanz.ch>
Fri, 18 Sep 2009 07:14:46 +0000 (09:14 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Oct 2009 20:52:07 +0000 (13:52 -0700)
commitd86a83f4acbded4095a632e861183d117ec7405a
tree2c0bb415c03edcb9452e04b094c3b6f820a50a74
parent2f13612a86dd785d581e29aed4db2fb98ba507ca
USB: gadget: imx_udc: 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: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/imx_udc.c