All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rt2x00: don't use to_pci_dev in rt2x00pci_uninitialize
@ 2010-05-19  6:47 Helmut Schaa
  2010-05-19  6:57 ` Ivo Van Doorn
  0 siblings, 1 reply; 2+ messages in thread
From: Helmut Schaa @ 2010-05-19  6:47 UTC (permalink / raw)
  To: John Linville; +Cc: Ivo van Doorn, Gertjan van Wingerde, linux-wireless, users

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>
---
 drivers/net/wireless/rt2x00/rt2x00pci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/wireless/rt2x00/rt2x00pci.c b/drivers/net/wireless/rt2x00/rt2x00pci.c
index a016f7c..f71eee6 100644
--- a/drivers/net/wireless/rt2x00/rt2x00pci.c
+++ b/drivers/net/wireless/rt2x00/rt2x00pci.c
@@ -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
-- 
1.6.4.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] rt2x00: don't use to_pci_dev in rt2x00pci_uninitialize
  2010-05-19  6:47 [PATCH] rt2x00: don't use to_pci_dev in rt2x00pci_uninitialize Helmut Schaa
@ 2010-05-19  6:57 ` Ivo Van Doorn
  0 siblings, 0 replies; 2+ messages in thread
From: Ivo Van Doorn @ 2010-05-19  6:57 UTC (permalink / raw)
  To: Helmut Schaa; +Cc: John Linville, Gertjan van Wingerde, linux-wireless, users

On Wed, May 19, 2010 at 8:47 AM, Helmut Schaa
<helmut.schaa@googlemail.com> wrote:
> 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>

> ---
>  drivers/net/wireless/rt2x00/rt2x00pci.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/net/wireless/rt2x00/rt2x00pci.c b/drivers/net/wireless/rt2x00/rt2x00pci.c
> index a016f7c..f71eee6 100644
> --- a/drivers/net/wireless/rt2x00/rt2x00pci.c
> +++ b/drivers/net/wireless/rt2x00/rt2x00pci.c
> @@ -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
> --
> 1.6.4.2
>
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-05-19  6:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-19  6:47 [PATCH] rt2x00: don't use to_pci_dev in rt2x00pci_uninitialize Helmut Schaa
2010-05-19  6:57 ` Ivo Van Doorn

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.