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>
This commit is contained in:
@@ -937,22 +937,18 @@ static int read_xenbus_vif_flags(struct backend_info *be)
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/* ** Driver Registration ** */
|
||||
|
||||
|
||||
static const struct xenbus_device_id netback_ids[] = {
|
||||
{ "vif" },
|
||||
{ "" }
|
||||
};
|
||||
|
||||
|
||||
static DEFINE_XENBUS_DRIVER(netback, ,
|
||||
static struct xenbus_driver netback_driver = {
|
||||
.ids = netback_ids,
|
||||
.probe = netback_probe,
|
||||
.remove = netback_remove,
|
||||
.uevent = netback_uevent,
|
||||
.otherend_changed = frontend_changed,
|
||||
);
|
||||
};
|
||||
|
||||
int xenvif_xenbus_init(void)
|
||||
{
|
||||
|
Reference in New Issue
Block a user