USB: isp1760: Fix probe in PCI glue code
authorKarl Bongers <kbongers@jged.com>
Mon, 1 Dec 2008 10:47:40 +0000 (11:47 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 7 Jan 2009 18:00:04 +0000 (10:00 -0800)
commit6013bbbab0dcbc43bcf9dd70beeab2a0b1ec5ea7
tree79175da5e8fcf85a8650e825d0b7cc3f2d2a2d94
parent6c0735687d37e25a65866823881bcbf39a6a023f
USB: isp1760: Fix probe in PCI glue code

Contains fixes so probe on x86 PCI runs, apparently I'm first to try
this. Several fixes to memory access to probe host scratch register.
Previously would bug check on chip_addr var used uninitialized.
Scratch reg write failed in one instance due to 16-bit initial access
mode, so added "& 0x0000ffff" to the readl as fix.
Includes some general cleanup - remove global vars, organize memory map
resource use.

Signed-off-by: Karl Bongers <kbongers@jged.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/isp1760-if.c