atheros: v3.18: remap flash for boardconfig parsing
[openwrt/staging/mkresin.git] / target / linux / atheros / patches-3.18 / 103-ar2315_gpio.patch
index f0ab11040012e7211a074624875430484fbf733a..32022e6aebf4845c29aab98873cf3a58071af053 100644 (file)
 +      .num_resources = ARRAY_SIZE(ar2315_gpio_res)
 +};
 +
- /*
-  * NB: We use mapping size that is larger than the actual flash size,
-  * but this shouldn't be a problem here, because the flash will simply
-@@ -285,6 +313,7 @@ void __init ar2315_init_devices(void)
-       ath25_find_config(ar2315_flash_limit());
+ #ifdef CONFIG_LEDS_GPIO
+ static struct gpio_led ar2315_leds[6];
+ static struct gpio_led_platform_data ar2315_led_data = {
+@@ -275,6 +303,7 @@ void __init ar2315_init_devices(void)
+       ath25_find_config(AR2315_SPI_READ_BASE, AR2315_SPI_READ_SIZE);
        ar2315_eth_data.macaddr = ath25_board.config->enet0_mac;
  
 +      platform_device_register(&ar2315_gpio);