Skip to content

Commit 50b381b

Browse files
hzhuang1Samuel Ortiz
authored andcommitted
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 <haojian.zhuang@gmail.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
1 parent b079fa7 commit 50b381b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎drivers/mfd/88pm860x-core.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ static struct resource rtc_resources[] __devinitdata = {
158158
{PM8607_IRQ_RTC, PM8607_IRQ_RTC, "rtc", IORESOURCE_IRQ,},
159159
};
160160

161-
static struct mfd_cell bk_devs[] = {
161+
static struct mfd_cell bk_devs[] __devinitdata = {
162162
{
163163
.name = "88pm860x-backlight",
164164
.id = 0,
@@ -177,7 +177,7 @@ static struct mfd_cell bk_devs[] = {
177177
},
178178
};
179179

180-
static struct mfd_cell led_devs[] = {
180+
static struct mfd_cell led_devs[] __devinitdata = {
181181
{
182182
.name = "88pm860x-led",
183183
.id = 0,
@@ -211,7 +211,7 @@ static struct mfd_cell led_devs[] = {
211211
},
212212
};
213213

214-
static struct mfd_cell reg_devs[] = {
214+
static struct mfd_cell reg_devs[] __devinitdata = {
215215
{
216216
.name = "88pm860x-regulator",
217217
.id = 0,

0 commit comments

Comments
 (0)