]> git.baikalelectronics.ru Git - kernel.git/commit
USB: ohci-s3c2410: use resource_size()
authorJingoo Han <jg1.han@samsung.com>
Thu, 14 Apr 2011 12:09:16 +0000 (21:09 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 30 Apr 2011 00:24:37 +0000 (17:24 -0700)
commit776a8493b01ac8685d8e556d756739629d74596f
tree72d3e20ce125a30cd864be0fa54aaeb773b068a1
parenta531329fd1ef034ef3a011ec2bda4daeaf7b855b
USB: ohci-s3c2410: use resource_size()

This patch uses the resource_size help function instead of
manually calculating the resource size. It can reduce the chance
of introducing off-by-one errors.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ohci-s3c2410.c