Fix some section mismatches found with kernel 4.9.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
.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) |
.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) |
},
};
-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"),
},
};
-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"),
.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"),
.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)
},
};
-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"),
},
};
-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"),
.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) |
}
}
-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,
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)
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;
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;