Ian Abbott fa5c5f4ce0 Staging: comedi: jr3_pci: Don't ioremap too much space. Check result.
For the JR3/PCI cards, the size of the PCIBAR0 region depends on the
number of channels.  Don't try and ioremap space for 4 channels if the
card has fewer channels.  Also check for ioremap failure.

Thanks to Anders Blomdell for input and Sami Hussein for testing.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-12-23 11:27:46 -08:00
..
2009-09-15 12:02:16 -07:00
2009-12-12 13:08:15 +01:00
2009-12-11 12:23:09 -08:00
2009-12-22 12:27:33 -05:00
2009-12-11 12:23:04 -08:00
2009-12-11 12:23:18 -08:00
2009-12-23 11:27:45 -08:00
2009-12-23 11:27:45 -08:00