[PATCH] pcmcia/at91_cf: don't redefine SZ_2K

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Tue Dec 22 11:28:27 EST 2009


On Tue, Dec 22, 2009 at 03:28:27PM +0000, Russell King - ARM Linux wrote:
> On Sun, Dec 20, 2009 at 10:10:34PM +0100, Uwe Kleine-König wrote:
> > This fixes:
> > 
> > 	drivers/pcmcia/at91_cf.c:55:1: warning: "SZ_2K" redefined
> > 
> > Since
> > 
> > 	c1191b0 ([ARM] Kirkwood: create a mapping for the Security Accelerator SRAM)
> 
> Have you checked whether everything which uses at91_cf still builds after
> this patch has been applied (eg, AVR32 stuff?)
I wasn't aware that the driver is used on AVR32, too.

Hmmmm, drivers/pcmcia/Kconfig has:

	config AT91_CF
		tristate "AT91 CompactFlash Controller"
		depends on PCMCIA && ARCH_AT91RM9200
		...

So unless ARCH_AT91RM9200 is used on AVR32 there is no problem.
Moreover AVR32 doesn't seem to provide <asm/sizes.h>.

Best regards
Uwe

-- 
Pengutronix e.K.                              | Uwe Kleine-König            |
Industrial Linux Solutions                    | http://www.pengutronix.de/  |



More information about the linux-pcmcia mailing list