diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mmc/card/block.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index e5bf2bfb5463..e7efd6faeaf9 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c | |||
@@ -970,6 +970,7 @@ static int mmc_add_disk(struct mmc_blk_data *md) | |||
970 | add_disk(md->disk); | 970 | add_disk(md->disk); |
971 | md->force_ro.show = force_ro_show; | 971 | md->force_ro.show = force_ro_show; |
972 | md->force_ro.store = force_ro_store; | 972 | md->force_ro.store = force_ro_store; |
973 | sysfs_attr_init(&md->force_ro.attr); | ||
973 | md->force_ro.attr.name = "force_ro"; | 974 | md->force_ro.attr.name = "force_ro"; |
974 | md->force_ro.attr.mode = S_IRUGO | S_IWUSR; | 975 | md->force_ro.attr.mode = S_IRUGO | S_IWUSR; |
975 | ret = device_create_file(disk_to_dev(md->disk), &md->force_ro); | 976 | ret = device_create_file(disk_to_dev(md->disk), &md->force_ro); |