aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/xen-blkfront.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/xen-blkfront.c')
-rw-r--r--drivers/block/xen-blkfront.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c
index 2e7c81e3f36a..4497ff84f64a 100644
--- a/drivers/block/xen-blkfront.c
+++ b/drivers/block/xen-blkfront.c
@@ -75,7 +75,6 @@ static struct block_device_operations xlvbd_block_fops;
75struct blkfront_info 75struct blkfront_info
76{ 76{
77 struct xenbus_device *xbdev; 77 struct xenbus_device *xbdev;
78 dev_t dev;
79 struct gendisk *gd; 78 struct gendisk *gd;
80 int vdevice; 79 int vdevice;
81 blkif_vdev_t handle; 80 blkif_vdev_t handle;
@@ -903,7 +902,7 @@ static void backend_changed(struct xenbus_device *dev,
903 break; 902 break;
904 903
905 case XenbusStateClosing: 904 case XenbusStateClosing:
906 bd = bdget(info->dev); 905 bd = bdget_disk(info->gd, 0);
907 if (bd == NULL) 906 if (bd == NULL)
908 xenbus_dev_fatal(dev, -ENODEV, "bdget failed"); 907 xenbus_dev_fatal(dev, -ENODEV, "bdget failed");
909 908