diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c index c8046bc4aa57e0f12df3db3bc2495eea3be97564..b09beb2b52c74a69b45da259e5684e3bf3b1ca08 100644 --- a/drivers/md/bcache/super.c +++ b/drivers/md/bcache/super.c @@ -634,11 +634,10 @@ static int open_dev(struct block_device *b, fmode_t mode) return 0; } -static int release_dev(struct gendisk *b, fmode_t mode) +static void release_dev(struct gendisk *b, fmode_t mode) { struct bcache_device *d = b->private_data; closure_put(&d->cl); - return 0; } static int ioctl_dev(struct block_device *b, fmode_t mode,