[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20101104095920.GB16938@pengutronix.de>
Date: Thu, 4 Nov 2010 10:59:20 +0100
From: Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>
To: linux-pcmcia@...ts.infradead.org
Cc: Eric Miao <eric.y.miao@...il.com>,
Russell King <linux@....linux.org.uk>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
Michal Marek <mmarek@...e.cz>, Sam Ravnborg <sam@...nborg.org>
Subject: Re: [PATCH] pcmcia/sa1100: don't put machine specific init
functions in .init.text
Hello,
> [..]
> diff --git a/drivers/pcmcia/sa1100_generic.c b/drivers/pcmcia/sa1100_generic.c
> index 945857f..6b22859 100644
> --- a/drivers/pcmcia/sa1100_generic.c
> +++ b/drivers/pcmcia/sa1100_generic.c
> @@ -64,7 +64,7 @@ static int (*sa11x0_pcmcia_hw_init[])(struct device *dev) = {
> #endif
> };
>
> -static int sa11x0_drv_pcmcia_probe(struct platform_device *dev)
> +static int __devinit sa11x0_drv_pcmcia_probe(struct platform_device *dev)
> {
> int i, ret = -ENODEV;
>
BTW, I wonder why sa11x0_pcmcia_hw_init doesn't need to be annotated
with __devinitdata. I guess the compiler just put's the array into
sa11x0_drv_pcmcia_probe and so modpost doesn't notice.
If you care I can resend with sa11x0_pcmcia_hw_init being marked, too.
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists