diff options
author | David Vrabel <david.vrabel@citrix.com> | 2014-09-08 12:30:41 -0400 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2014-10-06 05:27:57 -0400 |
commit | 95afae481414cbdb0567bf82d5e5077c3ac9da20 (patch) | |
tree | 653ae2fae22966dd2a634ac4865ead3c6937eee9 /drivers/input/misc | |
parent | 305559f16538708b603ceeb317ebaed9c4da9ce9 (diff) |
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/input/misc')
-rw-r--r-- | drivers/input/misc/xen-kbdfront.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/input/misc/xen-kbdfront.c b/drivers/input/misc/xen-kbdfront.c index fbfdc10573be..1af28b06c713 100644 --- a/drivers/input/misc/xen-kbdfront.c +++ b/drivers/input/misc/xen-kbdfront.c | |||
@@ -365,12 +365,13 @@ static const struct xenbus_device_id xenkbd_ids[] = { | |||
365 | { "" } | 365 | { "" } |
366 | }; | 366 | }; |
367 | 367 | ||
368 | static DEFINE_XENBUS_DRIVER(xenkbd, , | 368 | static struct xenbus_driver xenkbd_driver = { |
369 | .ids = xenkbd_ids, | ||
369 | .probe = xenkbd_probe, | 370 | .probe = xenkbd_probe, |
370 | .remove = xenkbd_remove, | 371 | .remove = xenkbd_remove, |
371 | .resume = xenkbd_resume, | 372 | .resume = xenkbd_resume, |
372 | .otherend_changed = xenkbd_backend_changed, | 373 | .otherend_changed = xenkbd_backend_changed, |
373 | ); | 374 | }; |
374 | 375 | ||
375 | static int __init xenkbd_init(void) | 376 | static int __init xenkbd_init(void) |
376 | { | 377 | { |