| Submitter | Bryan Wu |
|---|---|
| Date | Oct. 22, 2010, 1:53 p.m. |
| Message ID | <AANLkTin_bA2oPd-cqeUibU-Nh5aFzoY-jjjYhGaW-Xh4@mail.gmail.com> |
| Download | mbox | patch |
| Permalink | /patch/68849/ |
| State | Accepted |
| Delegated to: | Tim Gardner |
| Headers | show |
Comments
Patch
diff --git a/arch/arm/mach-omap2/board-4430sdp-wifi.c b/arch/arm/mach-omap2/board-4430sdp-wifi.c index aa731ef..a950f45 100644 --- a/arch/arm/mach-omap2/board-4430sdp-wifi.c +++ b/arch/arm/mach-omap2/board-4430sdp-wifi.c @@ -25,6 +25,7 @@ #include <asm/gpio.h> #include <asm/io.h> +#include <asm/mach-types.h> #include <plat/wifi_tiwlan.h> #define SDP4430_WIFI_PMENA_GPIO 43 @@ -120,6 +121,9 @@ static int __init sdp4430_wifi_init(void) { int ret; + if (!machine_is_omap4_panda()) + return -ENODEV; + printk(KERN_WARNING"%s: start\n", __func__); ret = gpio_request(SDP4430_WIFI_IRQ_GPIO, "wifi_irq"); if (ret < 0) {