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)
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

index a016f7ccde29a1c347e72a3c82750fff0c700390..f71eee67f977de43e0c2aa61b0355ff29dc8d3ae 100644 (file)
@@ -206,7 +206,7 @@ void rt2x00pci_uninitialize(struct rt2x00_dev *rt2x00dev)
        /*
         * Free irq line.
         */
-       free_irq(to_pci_dev(rt2x00dev->dev)->irq, rt2x00dev);
+       free_irq(rt2x00dev->irq, rt2x00dev);
 
        /*
         * Free DMA