From: Haojian Zhuang Date: Tue, 11 Sep 2012 14:09:55 +0000 (+0800) Subject: mfd: 88pm860x: Fix section mismatch warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=50b381b72bf080dc10d20f5d33486488bf737bbc;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mfd: 88pm860x: Fix section mismatch warning WARNING: drivers/built-in.o(.data+0x1e3c8): Section mismatch in reference from the variable bk_devs to the variable .devinit.data:bk0_resources The variable bk_devs references the variable __devinitdata bk0_resources If the reference is valid then annotate the variable with __init* or __refdata (see linux/init.h) or name the variable: *driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console So add __devinitdata on bk_devs, led_devs & reg_devs. Signed-off-by: Haojian Zhuang Signed-off-by: Samuel Ortiz --- diff --git a/drivers/mfd/88pm860x-core.c b/drivers/mfd/88pm860x-core.c index 4927f4efcf9d..0c01d7403251 100644 --- a/drivers/mfd/88pm860x-core.c +++ b/drivers/mfd/88pm860x-core.c @@ -158,7 +158,7 @@ static struct resource rtc_resources[] __devinitdata = { {PM8607_IRQ_RTC, PM8607_IRQ_RTC, "rtc", IORESOURCE_IRQ,}, }; -static struct mfd_cell bk_devs[] = { +static struct mfd_cell bk_devs[] __devinitdata = { { .name = "88pm860x-backlight", .id = 0, @@ -177,7 +177,7 @@ static struct mfd_cell bk_devs[] = { }, }; -static struct mfd_cell led_devs[] = { +static struct mfd_cell led_devs[] __devinitdata = { { .name = "88pm860x-led", .id = 0, @@ -211,7 +211,7 @@ static struct mfd_cell led_devs[] = { }, }; -static struct mfd_cell reg_devs[] = { +static struct mfd_cell reg_devs[] __devinitdata = { { .name = "88pm860x-regulator", .id = 0,