From: Marc-André Hébert Date: Mon, 31 Jan 2011 17:31:24 +0000 (-0500) Subject: mmc: Fix the block device read only flag X-Git-Tag: v2.6.39-rc1~412^2~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3362177fe1b7c23ee8497ee720ab4d6f6ba0b840;p=pandora-kernel.git mmc: Fix the block device read only flag While the MMC handled the card's read only flag correctly on open, it did not setup the flag in the allocated disk structure. The consequence being that probing the /sys/class/block/mmcblkX/ro attribute always reported 0. Signed-off-by: Marc-Andre Hebert Reviewed-by: Chris Ball Tested-by: Chris Ball Signed-off-by: Chris Ball --- Reading git-diff-tree failed