git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ARM: 5957/1: ARM: RealView SD/MMC Card detection and write-protect using GPIOLIB
[safe/jmp/linux-2.6]
/
arch
/
arm
/
mach-realview
/
core.c
diff --git
a/arch/arm/mach-realview/core.c
b/arch/arm/mach-realview/core.c
index
f2dbce5
..
d5a9573
100644
(file)
--- a/
arch/arm/mach-realview/core.c
+++ b/
arch/arm/mach-realview/core.c
@@
-254,7
+254,7
@@
static unsigned int realview_mmc_status(struct device *dev)
else
mask = 2;
- return
readl(REALVIEW_SYSMCI) & mask
;
+ return
!(readl(REALVIEW_SYSMCI) & mask)
;
}
struct mmci_platform_data realview_mmc0_plat_data = {