]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1cd7b6b41e43583a62fda1479847a1cbe57bf0e0
tree2c0bb415c03edcb9452e04b094c3b6f820a50a74
parentb3737e0b2cadf709d531cf079c11d245aeed6b2a
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