projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ba85d9
)
mmc: block: Init ro_lock sysfs attr to fix lockdep warnings
author
Rabin Vincent
<
[email protected]
>
Wed, 1 Feb 2012 15:31:56 +0000
(16:31 +0100)
committer
Chris Ball
<
[email protected]
>
Tue, 14 Feb 2012 01:39:04 +0000
(20:39 -0500)
Signed-off-by: Rabin Vincent <
[email protected]
>
Signed-off-by: Johan Rudholm <
[email protected]
>
Signed-off-by: Ulf Hansson <
[email protected]
>
Acked-by: Linus Walleij <
[email protected]
>
Reviewed-by: Namjae Jeon <
[email protected]
>
Signed-off-by: Chris Ball <
[email protected]
>
drivers/mmc/card/block.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/card/block.c
b/drivers/mmc/card/block.c
index 0cad48a284a85366e6ad72aa607fd6d9f3da59ce..c6a383d0244dd6eafa8c87b290c54fac27b3640e 100644
(file)
--- 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";