Message ID | 1328110316-7593-1-git-send-email-ulf.hansson@stericsson.com |
---|---|
State | Accepted |
Commit | 00d9ac08757049f334803b3d4dd202a6b1687dab |
Headers | show |
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index 176b78e..a7c75d8 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c @@ -1705,6 +1705,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";