tty: cpm_uart: use resource_size()
authorTobias Klauser <tklauser@distanz.ch>
Thu, 11 Mar 2010 22:08:18 +0000 (14:08 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 19 Mar 2010 14:17:56 +0000 (07:17 -0700)
commit231443665882a02214c3748b9f86615a3ce9e5c2
tree46063b96172dc6579fdae2e774ceaff8027d22cb
parentd4bee0a677cfa5a32f964ffa420e27406c65e605
tty: cpm_uart: 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>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Kumar Gala <galak@gate.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/serial/cpm_uart/cpm_uart_cpm2.c