Skip to content

Commit

Permalink
mmc: block: Init ro_lock sysfs attr to fix lockdep warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: Johan Rudholm <johan.rudholm@stericsson.com>
Signed-off-by: Ulf Hansson <ulf.hansson@stericsson.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Namjae Jeon <linkinjeon@gmail.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
  • Loading branch information
Rabin Vincent authored and Chris Ball committed Feb 14, 2012
1 parent 5ba85d9 commit 00d9ac0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mmc/card/block.c
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 00d9ac0

Please sign in to comment.