From: gwl Date: Thu, 28 Jun 2012 03:31:18 +0000 (+0800) Subject: add broadcom OOB function resource,current is not used X-Git-Tag: firefly_0821_release~9060 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=86cb5e4e16562f3e29e3bc0ae0b54b215de1e335;p=firefly-linux-kernel-4.4.55.git add broadcom OOB function resource,current is not used --- diff --git a/arch/arm/mach-rk30/board-rk30-sdk-sdmmc.c b/arch/arm/mach-rk30/board-rk30-sdk-sdmmc.c index 3e8bc17f8229..df39601eaf4b 100644 --- a/arch/arm/mach-rk30/board-rk30-sdk-sdmmc.c +++ b/arch/arm/mach-rk30/board-rk30-sdk-sdmmc.c @@ -408,6 +408,16 @@ int rk29sdk_wifi_set_carddetect(int val) } EXPORT_SYMBOL(rk29sdk_wifi_set_carddetect); +#define WIFI_HOST_WAKE RK30_PIN3_PD2 + +static struct resource resources[] = { + { + .start = WIFI_HOST_WAKE, + .flags = IORESOURCE_IRQ, + .name = "bcmdhd_wlan_irq", + }, +}; + static struct wifi_platform_data rk29sdk_wifi_control = { .set_power = rk29sdk_wifi_power, .set_reset = rk29sdk_wifi_reset, @@ -418,6 +428,8 @@ static struct wifi_platform_data rk29sdk_wifi_control = { static struct platform_device rk29sdk_wifi_device = { .name = "bcmdhd_wlan", .id = 1, + .num_resources = ARRAY_SIZE(resources), + .resource = resources, .dev = { .platform_data = &rk29sdk_wifi_control, },