staging: comedi: dt3000: ioremap'ed addresses are resource_size_t
authorH Hartley Sweeten <hartleys@visionengravers.com>
Fri, 20 Jul 2012 17:32:47 +0000 (10:32 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Aug 2012 00:14:53 +0000 (17:14 -0700)
commit2724f01856fafbe9f76d8e74a564b576b6f02d72
tree6aff54bdd7c8f87f03167d2a3fd0b097ce0e0e21
parent325a01f38d8e443b9a10a84606740cf570efddd1
staging: comedi: dt3000: ioremap'ed addresses are resource_size_t

As mentioned by Ian Abbott, the pci address passed to ioremap
should be a resource_size_t not an unsigned long. Use a local
variable of that type to hold the pci_resource_start() that is
passed to ioremp().

Set the dev->iobase to a dummy non-zero value so that the "detach"
can use it as a flag to know that comedi_pci_disable() needs to
be called.

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