public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mfd: fix the warning of __devinitdata
@ 2012-09-11 14:09 Haojian Zhuang
  2012-09-11 16:11 ` Samuel Ortiz
  0 siblings, 1 reply; 2+ messages in thread
From: Haojian Zhuang @ 2012-09-11 14:09 UTC (permalink / raw)
  To: kernel-janitors

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>
---
 drivers/mfd/88pm860x-core.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/mfd/88pm860x-core.c b/drivers/mfd/88pm860x-core.c
index 4927f4e..0c01d74 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,
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-09-11 16:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-11 14:09 [PATCH] mfd: fix the warning of __devinitdata Haojian Zhuang
2012-09-11 16:11 ` Samuel Ortiz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox