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:
@@ -1136,11 +1136,13 @@ static const struct xenbus_device_id xenpci_ids[] = {
|
||||
{""},
|
||||
};
|
||||
|
||||
static DEFINE_XENBUS_DRIVER(xenpci, "pcifront",
|
||||
static struct xenbus_driver xenpci_driver = {
|
||||
.name = "pcifront",
|
||||
.ids = xenpci_ids,
|
||||
.probe = pcifront_xenbus_probe,
|
||||
.remove = pcifront_xenbus_remove,
|
||||
.otherend_changed = pcifront_backend_changed,
|
||||
);
|
||||
};
|
||||
|
||||
static int __init pcifront_init(void)
|
||||
{
|
||||
|
Referens i nytt ärende
Block a user