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:
@@ -365,12 +365,13 @@ static const struct xenbus_device_id xenkbd_ids[] = {
|
||||
{ "" }
|
||||
};
|
||||
|
||||
static DEFINE_XENBUS_DRIVER(xenkbd, ,
|
||||
static struct xenbus_driver xenkbd_driver = {
|
||||
.ids = xenkbd_ids,
|
||||
.probe = xenkbd_probe,
|
||||
.remove = xenkbd_remove,
|
||||
.resume = xenkbd_resume,
|
||||
.otherend_changed = xenkbd_backend_changed,
|
||||
);
|
||||
};
|
||||
|
||||
static int __init xenkbd_init(void)
|
||||
{
|
||||
|
Reference in New Issue
Block a user