>From e70fb5a9726e4aa316c10fb805526ef3dc8c7f9f Mon Sep 17 00:00:00 2001 From: Sebastien Busson <[email protected]> Date: Tue, 2 Nov 2010 10:51:18 +0100 Subject: [PATCH] wl1271 : add called gpio_to_irq
Add called gpio_to_irq to enable wl1271 driver. Signed-off-by: Sebastien Busson <[email protected]> --- .../drivers/net/wireless/wl12xx/wl1271_sdio.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/compat-wireless-2010-10-19/drivers/net/wireless/wl12xx/wl1271_sdio.c b/compat-wireless-2010-10-19/drivers/net/wireless/wl12xx/wl1271_sdio.c index 784ef34..061ee3c 100644 --- a/compat-wireless-2010-10-19/drivers/net/wireless/wl12xx/wl1271_sdio.c +++ b/compat-wireless-2010-10-19/drivers/net/wireless/wl12xx/wl1271_sdio.c @@ -238,7 +238,12 @@ static int __devinit wl1271_probe(struct sdio_func *func, goto out_free; } - wl->irq = wlan_data->irq; + wl->irq = gpio_to_irq(wlan_data->irq); + if (wl->irq < 0) { + wl1271_error("irq missing in platform data"); + ret = -ENODEV; + goto out_free; + } wl->ref_clock = wlan_data->board_ref_clock; ret = request_irq(wl->irq, wl1271_irq, 0, DRIVER_NAME, wl); -- 1.7.2.3 --------------------------------------------------------------------- Intel Corporation SAS (French simplified joint stock company) Registered headquarters: "Les Montalets"- 2, rue de Paris, 92196 Meudon Cedex, France Registration Number: 302 456 199 R.C.S. NANTERRE Capital: 4,572,000 Euros This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
0001-wl1271-add-called-gpio_to_irq.patch
Description: 0001-wl1271-add-called-gpio_to_irq.patch
_______________________________________________ MeeGo-kernel mailing list [email protected] http://lists.meego.com/listinfo/meego-kernel
