diff options
author | Haojian Zhuang <haojian.zhuang@gmail.com> | 2012-09-11 10:09:55 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-09-14 03:52:15 -0400 |
commit | 50b381b72bf080dc10d20f5d33486488bf737bbc (patch) | |
tree | cd5fa97bfbb67e4d5ac2765f76581dc6a6fffa4b | |
parent | b079fa72069ba7f754ba8bdf737335abdb971b67 (diff) |
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>
-rw-r--r-- | drivers/mfd/88pm860x-core.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 = { | |||
158 | {PM8607_IRQ_RTC, PM8607_IRQ_RTC, "rtc", IORESOURCE_IRQ,}, | 158 | {PM8607_IRQ_RTC, PM8607_IRQ_RTC, "rtc", IORESOURCE_IRQ,}, |
159 | }; | 159 | }; |
160 | 160 | ||
161 | static struct mfd_cell bk_devs[] = { | 161 | static struct mfd_cell bk_devs[] __devinitdata = { |
162 | { | 162 | { |
163 | .name = "88pm860x-backlight", | 163 | .name = "88pm860x-backlight", |
164 | .id = 0, | 164 | .id = 0, |
@@ -177,7 +177,7 @@ static struct mfd_cell bk_devs[] = { | |||
177 | }, | 177 | }, |
178 | }; | 178 | }; |
179 | 179 | ||
180 | static struct mfd_cell led_devs[] = { | 180 | static struct mfd_cell led_devs[] __devinitdata = { |
181 | { | 181 | { |
182 | .name = "88pm860x-led", | 182 | .name = "88pm860x-led", |
183 | .id = 0, | 183 | .id = 0, |
@@ -211,7 +211,7 @@ static struct mfd_cell led_devs[] = { | |||
211 | }, | 211 | }, |
212 | }; | 212 | }; |
213 | 213 | ||
214 | static struct mfd_cell reg_devs[] = { | 214 | static struct mfd_cell reg_devs[] __devinitdata = { |
215 | { | 215 | { |
216 | .name = "88pm860x-regulator", | 216 | .name = "88pm860x-regulator", |
217 | .id = 0, | 217 | .id = 0, |