staging: comedi: daqboard2000: use the pci_resource_len()
authorH Hartley Sweeten <hartleys@visionengravers.com>
Wed, 19 Sep 2012 01:50:05 +0000 (18:50 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Sep 2012 08:41:45 +0000 (09:41 +0100)
commitbdf7c9dc10912dbad3a5052ee824546535e0b4c1
tree29e47167cfd3e18cab2c8dee6148a75e560c4a13
parent8a3f3d37c58ea44a2441fe8be4d8cd0996fc0c3c
staging: comedi: daqboard2000: use the pci_resource_len()

Use pci_resource_len() when doing the ioremap instead of assuming
the resource 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/daqboard2000.c