From: Rabin Vincent Date: Wed, 1 Feb 2012 15:31:56 +0000 (+0100) Subject: mmc: block: Init ro_lock sysfs attr to fix lockdep warnings X-Git-Tag: v3.3-rc4~20^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=00d9ac08757049f334803b3d4dd202a6b1687dab;p=platform%2Fkernel%2Flinux-stable.git mmc: block: Init ro_lock sysfs attr to fix lockdep warnings Signed-off-by: Rabin Vincent Signed-off-by: Johan Rudholm Signed-off-by: Ulf Hansson Acked-by: Linus Walleij Reviewed-by: Namjae Jeon Signed-off-by: Chris Ball --- diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index 0cad48a..c6a383d 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c @@ -1694,6 +1694,7 @@ static int mmc_add_disk(struct mmc_blk_data *md) md->power_ro_lock.show = power_ro_lock_show; md->power_ro_lock.store = power_ro_lock_store; + sysfs_attr_init(&md->power_ro_lock.attr); md->power_ro_lock.attr.mode = mode; md->power_ro_lock.attr.name = "ro_lock_until_next_power_on";