diff options
Diffstat (limited to 'drivers/mtd/mtd_blkdevs.c')
-rw-r--r-- | drivers/mtd/mtd_blkdevs.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/mtd/mtd_blkdevs.c b/drivers/mtd/mtd_blkdevs.c index 65d7e7e2fb1f..5073cbc796d8 100644 --- a/drivers/mtd/mtd_blkdevs.c +++ b/drivers/mtd/mtd_blkdevs.c | |||
@@ -237,12 +237,12 @@ error_put: | |||
237 | return ret; | 237 | return ret; |
238 | } | 238 | } |
239 | 239 | ||
240 | static int blktrans_release(struct gendisk *disk, fmode_t mode) | 240 | static void blktrans_release(struct gendisk *disk, fmode_t mode) |
241 | { | 241 | { |
242 | struct mtd_blktrans_dev *dev = blktrans_dev_get(disk); | 242 | struct mtd_blktrans_dev *dev = blktrans_dev_get(disk); |
243 | 243 | ||
244 | if (!dev) | 244 | if (!dev) |
245 | return 0; | 245 | return; |
246 | 246 | ||
247 | mutex_lock(&dev->lock); | 247 | mutex_lock(&dev->lock); |
248 | 248 | ||
@@ -260,7 +260,6 @@ static int blktrans_release(struct gendisk *disk, fmode_t mode) | |||
260 | unlock: | 260 | unlock: |
261 | mutex_unlock(&dev->lock); | 261 | mutex_unlock(&dev->lock); |
262 | blktrans_dev_put(dev); | 262 | blktrans_dev_put(dev); |
263 | return 0; | ||
264 | } | 263 | } |
265 | 264 | ||
266 | static int blktrans_getgeo(struct block_device *bdev, struct hd_geometry *geo) | 265 | static int blktrans_getgeo(struct block_device *bdev, struct hd_geometry *geo) |