summaryrefslogtreecommitdiff
path: root/drivers/mmc/core
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2020-05-28 11:22:22 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2020-05-28 11:22:22 +0200
commitb303c16cf3aa840c4abdda3b015313bfd83dad62 (patch)
treec5329d0a91d2d3085ee1ddf8dfaa9d85666eec3c /drivers/mmc/core
parent91132078a38d9455b3832da1d68329e91b63ba25 (diff)
parent202500d21654874aa03243e91f96de153ec61860 (diff)
Merge branch 'fixes' into next
Diffstat (limited to 'drivers/mmc/core')
-rw-r--r--drivers/mmc/core/block.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/core/block.c b/drivers/mmc/core/block.c
index c5367e2c8487..7896952de1ac 100644
--- a/drivers/mmc/core/block.c
+++ b/drivers/mmc/core/block.c
@@ -2484,8 +2484,8 @@ static int mmc_rpmb_chrdev_release(struct inode *inode, struct file *filp)
struct mmc_rpmb_data *rpmb = container_of(inode->i_cdev,
struct mmc_rpmb_data, chrdev);
- put_device(&rpmb->dev);
mmc_blk_put(rpmb->md);
+ put_device(&rpmb->dev);
return 0;
}