block: pass a gendisk to ->open
[linux-2.6-microblaze.git] / drivers / md / bcache / super.c
index d84c09a..6683f66 100644 (file)
@@ -732,9 +732,9 @@ out:
 
 /* Bcache device */
 
-static int open_dev(struct block_device *b, fmode_t mode)
+static int open_dev(struct gendisk *disk, fmode_t mode)
 {
-       struct bcache_device *d = b->bd_disk->private_data;
+       struct bcache_device *d = disk->private_data;
 
        if (test_bit(BCACHE_DEV_CLOSING, &d->flags))
                return -ENXIO;