aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/xen-blkback/xenbus.c
diff options
context:
space:
mode:
authorDavid Vrabel <david.vrabel@citrix.com>2014-09-08 17:30:41 +0100
committerDavid Vrabel <david.vrabel@citrix.com>2014-10-06 10:27:57 +0100
commit95afae481414cbdb0567bf82d5e5077c3ac9da20 (patch)
tree653ae2fae22966dd2a634ac4865ead3c6937eee9 /drivers/block/xen-blkback/xenbus.c
parentxen/xenbus: Remove BUG_ON() when error string trucated (diff)
downloadlinux-dev-95afae481414cbdb0567bf82d5e5077c3ac9da20.tar.xz
linux-dev-95afae481414cbdb0567bf82d5e5077c3ac9da20.zip
xen: remove DEFINE_XENBUS_DRIVER() macro
The DEFINE_XENBUS_DRIVER() macro looks a bit weird and causes sparse errors. Replace the uses with standard structure definitions instead. This is similar to pci and usb device registration. Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Diffstat (limited to 'drivers/block/xen-blkback/xenbus.c')
-rw-r--r--drivers/block/xen-blkback/xenbus.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/block/xen-blkback/xenbus.c b/drivers/block/xen-blkback/xenbus.c
index 3a8b810b4980..0b13b1c9a01e 100644
--- a/drivers/block/xen-blkback/xenbus.c
+++ b/drivers/block/xen-blkback/xenbus.c
@@ -907,22 +907,17 @@ static int connect_ring(struct backend_info *be)
return 0;
}
-
-/* ** Driver Registration ** */
-
-
static const struct xenbus_device_id xen_blkbk_ids[] = {
{ "vbd" },
{ "" }
};
-
-static DEFINE_XENBUS_DRIVER(xen_blkbk, ,
+static struct xenbus_driver xen_blkbk_driver = {
+ .ids = xen_blkbk_ids,
.probe = xen_blkbk_probe,
.remove = xen_blkbk_remove,
.otherend_changed = frontend_changed
-);
-
+};
int xen_blkif_xenbus_init(void)
{