From: Wolfram Sang Date: Fri, 15 Oct 2010 10:21:01 +0000 (+0200) Subject: mmc: sdhci: introduce get_ro private write-protect hook X-Git-Tag: v2.6.37-rc1~65^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2dfb579c7da171f6153cd58e8fbf7dcfe684778d;p=pandora-kernel.git mmc: sdhci: introduce get_ro private write-protect hook Some controllers handle their write-protection differently. Introduce a callback to be able to handle it, ensuring the same locking takes place for it. Rename the status variable to make it more obvious why the read from the registers needs to be inverted. Signed-off-by: Wolfram Sang Tested-by: Eric Bénard Signed-off-by: Chris Ball --- Reading git-diff-tree failed