ar71xx: fix section mismatches
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 7 Oct 2017 15:54:12 +0000 (17:54 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 11 Oct 2017 20:36:04 +0000 (22:36 +0200)
Fix some section mismatches found with kernel 4.9.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/ar71xx/files/arch/mips/ath79/mach-archer-c25-v1.c
target/linux/ar71xx/files/arch/mips/ath79/mach-archer-c59-v1.c
target/linux/ar71xx/files/arch/mips/ath79/mach-archer-c7.c
target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-n750.c
target/linux/ar71xx/files/arch/mips/ath79/mach-rb2011.c
target/linux/ar71xx/files/arch/mips/ath79/mach-rb91x.c
target/linux/ar71xx/files/arch/mips/ath79/mach-rbspi.c
target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr4300.c
target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr942n-v1.c
target/linux/ar71xx/files/drivers/leds/leds-nu801.c

index a0f001cb49af5aa501c6825c40f3a98ab99503b2..9e08c157e4f0bc26ecaa13cb40eb805a71a258d6 100644 (file)
@@ -74,7 +74,7 @@ static struct spi_gpio_platform_data archer_c25_v1_spi_data = {
        .num_chipselect = 1,
 };
 
-static u8 archer_c25_v1_ssr_initdata[] __initdata = {
+static u8 archer_c25_v1_ssr_initdata[] = {
        BIT(ARCHER_C25_V1_SSR_BIT_7) |
        BIT(ARCHER_C25_V1_SSR_BIT_6) |
        BIT(ARCHER_C25_V1_SSR_BIT_5) |
index f385d4a5a3148b83ee01007145e0eda2c0ef670f..da15919a54c7fb555ce3f6d34ec452d4fb0c353d 100644 (file)
@@ -180,7 +180,7 @@ static struct spi_gpio_platform_data archer_c59_v1_spi_data = {
        .num_chipselect = 1,
 };
 
-static u8 archer_c59_v1_ssr_initdata[] __initdata = {
+static u8 archer_c59_v1_ssr_initdata[] = {
        BIT(ARCHER_C59_V1_SSR_BIT_7) |
        BIT(ARCHER_C59_V1_SSR_BIT_6) |
        BIT(ARCHER_C59_V1_SSR_BIT_5) |
index f00998c66964566a6887cd619baa5b69d1a4ac17..46b49bc9bab0dd5f0befea9d1dcdc5f3e7f7d3c0 100644 (file)
@@ -141,7 +141,7 @@ static struct gpio_keys_button archer_c7_v2_gpio_keys[] __initdata = {
        },
 };
 
-static const struct ar8327_led_info archer_c7_leds_ar8327[] __initconst = {
+static const struct ar8327_led_info archer_c7_leds_ar8327[] = {
        AR8327_LED_INFO(PHY0_0, HW, "tp-link:blue:wan"),
        AR8327_LED_INFO(PHY1_0, HW, "tp-link:blue:lan1"),
        AR8327_LED_INFO(PHY2_0, HW, "tp-link:blue:lan2"),
index 9d69dc53fc94d80b3c11f4a25a3bc9e9c5817e56..0c9b197e88e4e74c14299e99305ab5b977445ad4 100644 (file)
@@ -98,7 +98,7 @@ static struct gpio_keys_button mynet_n750_gpio_keys[] __initdata = {
        },
 };
 
-static const struct ar8327_led_info mynet_n750_leds_ar8327[] __initconst = {
+static const struct ar8327_led_info mynet_n750_leds_ar8327[] = {
        AR8327_LED_INFO(PHY0_0, HW, "wd:green:lan1"),
        AR8327_LED_INFO(PHY1_0, HW, "wd:green:lan2"),
        AR8327_LED_INFO(PHY2_0, HW, "wd:green:lan3"),
index 9100a5977afa97fb1536f542fa061cdc01979d9b..4dc4647cc63dac30f4dea0d8a2d85b9f77cec509 100644 (file)
@@ -125,7 +125,7 @@ static struct ar8327_led_cfg rb2011_ar8327_led_cfg = {
        .open_drain = false,
 };
 
-static const struct ar8327_led_info rb2011_ar8327_leds[] __initconst = {
+static const struct ar8327_led_info rb2011_ar8327_leds[] = {
        AR8327_LED_INFO(PHY0_0, HW, "rb:green:eth1"),
        AR8327_LED_INFO(PHY1_0, HW, "rb:green:eth2"),
        AR8327_LED_INFO(PHY2_0, HW, "rb:green:eth3"),
index ba4da85530c8973ddd108f5ebfa876bc1d637a1d..64f927dc6a9a0a691703a571aa1d9ba61b77fa84 100644 (file)
@@ -140,7 +140,7 @@ static struct rb91x_nand_platform_data rb711gr100_nand_data __initdata = {
        .gpio_nle = RB91X_GPIO_NLE,
 };
 
-static u8 rb711gr100_ssr_initdata[] __initdata = {
+static u8 rb711gr100_ssr_initdata[] = {
        BIT(RB91X_SSR_BIT_PCIE_POWER) |
        BIT(RB91X_SSR_BIT_USB_POWER) |
        BIT(RB91X_SSR_BIT_5)
index 9b4c53a57877e34d5d1a8f6fb84efe900f817fb1..58e3138b5d3f18ba68a22cd495f46adef6ede523 100644 (file)
@@ -267,7 +267,7 @@ static struct gpio_led rb962_leds_gpio[] __initdata = {
        },
 };
 
-static const struct ar8327_led_info rb962_leds_ar8327[] __initconst = {
+static const struct ar8327_led_info rb962_leds_ar8327[] = {
                AR8327_LED_INFO(PHY0_0, HW, "rb:green:port1"),
                AR8327_LED_INFO(PHY1_0, HW, "rb:green:port2"),
                AR8327_LED_INFO(PHY2_0, HW, "rb:green:port3"),
index 3afc7146203fc1509790e36dfdf7084a9b719e45..cb5dc1dd213cac801519aed2ee9df8879cc75788 100644 (file)
@@ -107,7 +107,7 @@ static struct gpio_keys_button wdr4300_gpio_keys[] __initdata = {
        },
 };
 
-static const struct ar8327_led_info wdr4300_leds_ar8327[] __initconst = {
+static const struct ar8327_led_info wdr4300_leds_ar8327[] = {
        AR8327_LED_INFO(PHY0_0, HW, "tp-link:blue:wan"),
        AR8327_LED_INFO(PHY1_0, HW, "tp-link:blue:lan1"),
        AR8327_LED_INFO(PHY2_0, HW, "tp-link:blue:lan2"),
index 72910400c5f2a94dccf9bb840911a0f4e870f077..76f6a0759b68aff6c411c4738a26688eb62f0d59 100644 (file)
@@ -148,7 +148,7 @@ static struct spi_gpio_platform_data tl_wr942n_v1_spi_data = {
        .num_chipselect = 1,
 };
 
-static u8 tl_wr942n_v1_ssr_initdata[] __initdata = {
+static u8 tl_wr942n_v1_ssr_initdata[] = {
        BIT(TL_WR942N_V1_SSR_BIT_7) |
        BIT(TL_WR942N_V1_SSR_BIT_6) |
        BIT(TL_WR942N_V1_SSR_BIT_5) |
index f04df61c0423208917f6f92eda295d94a2bd4aed..11e8927785f5360c347c7ccdadca095477a60dd4 100644 (file)
@@ -98,7 +98,7 @@ static void led_nu801_set(struct led_classdev *led_cdev,
        }
 }
 
-static int __init led_nu801_create(struct led_nu801_data *controller,
+static int led_nu801_create(struct led_nu801_data *controller,
                                    struct device *parent,
                                    int index,
                                    enum led_brightness brightness,
@@ -131,7 +131,7 @@ err:
        return ret;
 }
 
-static int __init
+static int
 led_nu801_create_chain(const struct led_nu801_template *template,
                        struct led_nu801_data *controller,
                        struct device *parent)
@@ -237,7 +237,7 @@ static void led_nu801_delete_chain(struct led_nu801_data *controller)
        kfree(led_chain);
 }
 
-static struct led_nu801_data * __init
+static struct led_nu801_data *
 leds_nu801_create_of(struct platform_device *pdev)
 {
        struct device_node *np = pdev->dev.of_node, *child;
@@ -307,7 +307,7 @@ err:
        return NULL;
 }
 
-static int __init led_nu801_probe(struct platform_device *pdev)
+static int led_nu801_probe(struct platform_device *pdev)
 {
        struct led_nu801_platform_data *pdata = pdev->dev.platform_data;
        struct led_nu801_data *controllers;