[PATCH 16/25] imx: generalize nand device registration
Uwe Kleine-König
u.kleine-koenig at pengutronix.de
Tue Nov 17 08:49:44 EST 2009
Hello,
> +int __init imx_add_mxc_nand(resource_size_t base, int irq,
> + const struct mxc_nand_platform_data *pdata)
> +{
> + static int id = 0;
While looking at Russell's suggestion to use __initdata for pdata I
noticed that id lives in .bss. So I fixed that, too, by making the
above line:
static int id __initdata = 0;
(Actually better would be:
static int id __initbss;
but this doesn't exist.)
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
More information about the linux-arm-kernel
mailing list