]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
avr32: some mmc/sd cleanups
authorDavid Brownell <dbrownell@users.sourceforge.net>
Sun, 27 Jul 2008 09:34:45 +0000 (02:34 -0700)
committerHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Sun, 27 Jul 2008 11:57:36 +0000 (13:57 +0200)
commit3c26e17032e42cfbe606882288223ad6146e4c38
tree1c537eb20767ccbf4a7ab85063d2dca8ec03956c
parenteda3d8f5604860aae1bb9996bb5efc4213778369
avr32: some mmc/sd cleanups

Minor cleanups for the MMC/SD support on avr32:

 - Make at32_add_device_mci() properly initialize "missing"
   platform data ... so boards like STK1002 won't try GPIO 0.

 - Switch over to gpio_is_valid() instead of testing for only
   one designated value.

 - Provide STK1002 platform data for the unlikely case that
   switches are set so first Ethernet controller isn't in use.
   (That's the only way to get card detect and writeprotect
   switch sensing on the STK1000.)

And get rid of one "unused variable" warning.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
arch/avr32/boards/atstk1000/atstk1002.c
arch/avr32/mach-at32ap/at32ap700x.c
drivers/mmc/host/atmel-mci.c