staging: comedi: rtd520: cleanup pci bar ioremap
authorH Hartley Sweeten <hartleys@visionengravers.com>
Mon, 29 Oct 2012 17:01:46 +0000 (10:01 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Oct 2012 17:44:37 +0000 (10:44 -0700)
commitfd711905579fccbbd4b020fd054dfcc4021f15b6
tree247d4057a125bca2ecc7a2041448e8bd58c42b5e
parent56b468fc709b2b962cd91e6cd9f087c3cd095283
staging: comedi: rtd520: cleanup pci bar ioremap

Use the size returned by pci_resource_len() when ioremap'ing the
pci bars instead of assuming a size.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/rtd520.c