rt2x00: don't use to_pci_dev in rt2x00pci_uninitialize
authorHelmut Schaa <helmut.schaa@googlemail.com>
Wed, 19 May 2010 06:47:59 +0000 (08:47 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 24 May 2010 18:59:25 +0000 (14:59 -0400)
commit52a9bd2a8fac5193435bb575313c89656709aea8
tree918f4ade3c6073b20c4d4a54352838ad96619e1c
parentb5eae9ff5ba6d76de19286dd6429acd7cde3f79d
rt2x00: don't use to_pci_dev in rt2x00pci_uninitialize

Don't use to_pci_dev in rt2x00pci_uninitialize to get the allocated irq
as it won't work for platform devices (SoC). Instead, use the irq field
that's already used everywhere else.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00pci.c