Messages in this thread | | | From | Marc Pignat <> | Subject | Re: [PATCH] at91_mci: use generic GPIO calls | Date | Tue, 5 Feb 2008 10:53:32 +0100 |
| |
Hi all!
On Monday 04 February 2008, Nicolas Ferre wrote: > From: David Brownell <dbrownell@users.sourceforge.net> ... > /* > @@ -946,9 +986,10 @@ static int __exit at91_mci_remove(struct > host = mmc_priv(mmc); > > if (host->board->det_pin) { > + if (device_can_wakeup(&pdev->dev)) > + free_irq(gpio_to_irq(host->board->det_pin), host); Seems strange to use device_can_wakeup(&pdev->dev) as have_we_requested_this_irq(gpio_to_irq(host->board->det_pin))... but seems to work.
Regards
Marc
| |