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-Url: https://git.stricted.de/?a=commitdiff_plain;h=00d9ac08757049f334803b3d4dd202a6b1687dab;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.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 0cad48a284a..c6a383d0244 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";