H Hartley Sweeten 4f6c7bf992 staging: comedi: s626: cleanup ioremap()
The local variable 'resourceStart' is only used in the ioremap()
to hold the PCI bar 0 base address. Just use the pci_resource_start()
directly in the ioremap().

Also, instead of assuming the resource size for the ioremap, use
pci_resource_len() to get the actual size.

Remove the kernel noise when the ioremap fails and change the error
code from -ENODEV to -ENOMEM.

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>
2012-09-26 09:37:30 -07:00
..
2012-09-16 17:17:25 -07:00
2012-09-13 20:20:28 -07:00
2012-07-06 16:08:57 -07:00
2012-09-21 09:17:07 -07:00
2012-09-16 17:17:25 -07:00
2012-09-16 17:17:25 -07:00
2012-07-16 19:24:46 -07:00
2012-09-16 17:17:25 -07:00
2012-09-26 09:19:50 -07:00
2012-09-16 17:17:25 -07:00
2012-07-09 11:35:00 -07:00