]> git.baikalelectronics.ru Git - kernel.git/commit
s3cmci: add better support for no card detect or write protect available
authorBen Dooks <ben@simtec.co.uk>
Thu, 1 Oct 2009 22:44:21 +0000 (15:44 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 1 Oct 2009 23:11:15 +0000 (16:11 -0700)
commitbc14c61948cec8e21947a73d051dd17645522c3e
tree3190a145fb984c06b0f6fccf3186f40b6d723bf3
parentc63f106c135e5c30e69b453ab37b29f30e652306
s3cmci: add better support for no card detect or write protect available

Add better support for omitting either the card detect or the write
protect GPIOs if the board does not support it.  Add the fields
no_wprotect and no_detect to the platform data which when set indicate the
absence of the respective GPIOs.

Note, this also fixes a minor bug where it tries to free IRQ0 if there is
no detect gpio available.

Signed-off-by: Ben Dooks <ben@simtec.co.uk>
Cc: <linux-mmc@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/arm/plat-s3c24xx/include/plat/mci.h
drivers/mmc/host/s3cmci.c