Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 00d9ac08 authored by Rabin Vincent's avatar Rabin Vincent Committed by Chris Ball
Browse files

mmc: block: Init ro_lock sysfs attr to fix lockdep warnings

parent 5ba85d95
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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";