[PATCH] yenta: fix parent resource determination
authorDominik Brodowski <linux@dominikbrodowski.net>
Tue, 12 Jul 2005 20:58:15 +0000 (13:58 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 12 Jul 2005 23:00:59 +0000 (16:00 -0700)
commit862104e56329babf0b9571281e9516fe6259dd17
tree2364a2bfb91961a806606b47b7b53ab65c9e5f54
parent8e2f3b70e60172f5ed7c0933b8d8a35654c1c031
[PATCH] yenta: fix parent resource determination

If the CardBus windows were pre-configured and the CardBus bridge is behind a
transparent PCI-PCI bridge, pci_find_parent_resource() might return a
different resource than the real parent if it is called before the window is
determined.  Therefore, move that call around.

Also fix return of value in void function.

Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/pcmcia/yenta_socket.c