aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/xen-blkback/xenbus.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/xen-blkback/xenbus.c')
-rw-r--r--drivers/block/xen-blkback/xenbus.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/block/xen-blkback/xenbus.c b/drivers/block/xen-blkback/xenbus.c
index f759ad4584c3..edbb69ebdf20 100644
--- a/drivers/block/xen-blkback/xenbus.c
+++ b/drivers/block/xen-blkback/xenbus.c
@@ -787,17 +787,14 @@ static const struct xenbus_device_id xen_blkbk_ids[] = {
787}; 787};
788 788
789 789
790static struct xenbus_driver xen_blkbk = { 790static DEFINE_XENBUS_DRIVER(xen_blkbk, ,
791 .name = "vbd",
792 .owner = THIS_MODULE,
793 .ids = xen_blkbk_ids,
794 .probe = xen_blkbk_probe, 791 .probe = xen_blkbk_probe,
795 .remove = xen_blkbk_remove, 792 .remove = xen_blkbk_remove,
796 .otherend_changed = frontend_changed 793 .otherend_changed = frontend_changed
797}; 794);
798 795
799 796
800int xen_blkif_xenbus_init(void) 797int xen_blkif_xenbus_init(void)
801{ 798{
802 return xenbus_register_backend(&xen_blkbk); 799 return xenbus_register_backend(&xen_blkbk_driver);
803} 800}