[POWERPC] ps3: system bus minor mmio fix
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sat, 27 Jan 2007 03:07:54 +0000 (19:07 -0800)
committerPaul Mackerras <paulus@samba.org>
Wed, 7 Feb 2007 03:03:17 +0000 (14:03 +1100)
commit43d80439c5f619446e174abdbdaff4fc0e539546
tree8cf055ca91a1de67f6fda124ccb68e43ac28c8c5
parent6c7be7d385f4911895877e0f0697c598f600136f
[POWERPC] ps3: system bus minor mmio fix

Fix two minor bugs in the PS3 system bus mmio region code.  First, on error or
when freeing a region, retain the bus_addr and len fields to allow subsequent
calls to create the region.  Second, correct the region address argument to the
lv1_unmap_device_mmio_region() call.

Fixes modprobe/rmmod of some drivers.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Acked-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
drivers/ps3/system-bus.c