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 <[email protected]>
This commit is contained in:
David Vrabel 2014-09-08 17:30:41 +01:00
commit 95afae4814
17 changed files with 78 additions and 65 deletions

View file

@ -998,11 +998,12 @@ static const struct xenbus_device_id scsifront_ids[] = {
{ "" }
};
static DEFINE_XENBUS_DRIVER(scsifront, ,
static struct xenbus_driver scsifront_driver = {
.ids = scsifront_ids,
.probe = scsifront_probe,
.remove = scsifront_remove,
.otherend_changed = scsifront_backend_changed,
);
};
static int __init scsifront_init(void)
{