Arnd Bergmann fdc858a466 pcmcia: sharpsl: don't discard sharpsl_pcmcia_ops
The sharpsl_pcmcia_ops structure gets passed into
sa11xx_drv_pcmcia_probe, where it gets accessed at run-time,
unlike all other pcmcia drivers that pass their structures
into platform_device_add_data, which makes a copy.

This means the gcc warning is valid and the structure
must not be marked as __initdata.

Without this patch, building collie_defconfig results in:

drivers/pcmcia/pxa2xx_sharpsl.c:22:31: fatal error: mach-pxa/hardware.h: No such file or directory
compilation terminated.
make[3]: *** [drivers/pcmcia/pxa2xx_sharpsl.o] Error 1
make[2]: *** [drivers/pcmcia] Error 2
make[1]: *** [drivers] Error 2
make: *** [sub-make] Error 2

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Dominik Brodowski <linux@dominikbrodowski.net>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Pavel Machek <pavel@suse.cz>
Cc: linux-pcmcia@lists.infradead.org
Cc: Jochen Friedrich <jochen@scram.de>
Cc: stable@vger.kernel.org
2012-10-12 17:43:26 +02:00
..
2009-10-24 17:13:01 +02:00
2012-03-28 18:30:03 +01:00
2012-03-09 12:35:53 -08:00
2008-06-24 15:33:37 +02:00
2012-05-07 09:56:39 +08:00
2010-11-01 15:38:34 -04:00
2010-11-01 15:38:34 -04:00
2012-05-07 09:56:39 +08:00
2010-11-10 14:29:09 +01:00
2011-02-19 12:22:35 +01:00
2012-05-07 09:56:39 +08:00
2012-03-28 18:30:03 +01:00
2011-03-31 11:26:23 -03:00