aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/card/block.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc/card/block.c')
-rw-r--r--drivers/mmc/card/block.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c
index e12a03cc2a6e..dd27b0783d52 100644
--- a/drivers/mmc/card/block.c
+++ b/drivers/mmc/card/block.c
@@ -304,14 +304,13 @@ static int mmc_blk_open(struct block_device *bdev, fmode_t mode)
304 return ret; 304 return ret;
305} 305}
306 306
307static int mmc_blk_release(struct gendisk *disk, fmode_t mode) 307static void mmc_blk_release(struct gendisk *disk, fmode_t mode)
308{ 308{
309 struct mmc_blk_data *md = disk->private_data; 309 struct mmc_blk_data *md = disk->private_data;
310 310
311 mutex_lock(&block_mutex); 311 mutex_lock(&block_mutex);
312 mmc_blk_put(md); 312 mmc_blk_put(md);
313 mutex_unlock(&block_mutex); 313 mutex_unlock(&block_mutex);
314 return 0;
315} 314}
316 315
317static int 316static int