serial: bfin_sport_uart: Use resource size to fix off-by-one error
authorTobias Klauser <tklauser@distanz.ch>
Tue, 11 May 2010 07:10:23 +0000 (09:10 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 21 May 2010 16:34:30 +0000 (09:34 -0700)
commite114474cf5c7fe7ab94dd4f5938ffa51c9af77c4
treeecf15b6b570aa7d0bfa92fe0e71c9d085622b1a5
parentccc5ca8d4cadc141d6c97ec0213cdd676616a11d
serial: bfin_sport_uart: Use resource size to fix off-by-one error

Use the resource_size function instead of manually calculating the
resource size. This actually fixes an off-by-one error.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/serial/bfin_sport_uart.c