ARM: 5957/1: ARM: RealView SD/MMC Card detection and write-protect using GPIOLIB
authorColin Tuckley <colin.tuckley@arm.com>
Wed, 24 Feb 2010 14:23:10 +0000 (15:23 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 28 Apr 2010 21:21:52 +0000 (22:21 +0100)
commitb56ba8aa6f3aeab23d3d4b1190ed1098463b2a9c
tree7b180e5ce9753a1f3c4e7958dba4b7f3446e616f
parent0ad707407d933841a0f337d6edccbc1d6c83e186
ARM: 5957/1: ARM: RealView SD/MMC Card detection and write-protect using GPIOLIB

The switch to using GPIOLIB broke the sd/mmc card detection on the
RealView development boards if GPIO_PL061 was not selected.
This patch selects GPIO_PL061 if GPIOLIB is selected.
The sense of the return value from mmc_status has also changed
and is corrected.

Signed-off-by: Colin Tuckley <colin.tuckley@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/Kconfig
arch/arm/mach-realview/core.c