aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd/lpddr/lpddr_cmds.c
diff options
context:
space:
mode:
authorTejun Heo <[email protected]>2010-11-13 11:55:17 +0100
committerTejun Heo <[email protected]>2010-11-13 11:55:17 +0100
commit75f1dc0d076d1c1168f2115f1941ea627d38bd5a (patch)
treeaf12858b842579e8924b30cb636b96fcca6f46b1 /drivers/mtd/lpddr/lpddr_cmds.c
parent6a027eff62f6ae32d49f2ae5dadd6f4eee1ddae2 (diff)
block: check bdev_read_only() from blkdev_get()
bdev read-only status can be queried using bdev_read_only() and may change while the device is being opened. Enforce it by checking it from blkdev_get() after open succeeds. This makes bdev_read_only() check in open_bdev_exclusive() and fsg_lun_open() unnecessary. Drop them. Signed-off-by: Tejun Heo <[email protected]> Cc: David Brownell <[email protected]> Cc: [email protected]
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions