aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorDavid Vrabel <david.vrabel@citrix.com>2014-09-08 12:30:41 -0400
committerDavid Vrabel <david.vrabel@citrix.com>2014-10-06 05:27:57 -0400
commit95afae481414cbdb0567bf82d5e5077c3ac9da20 (patch)
tree653ae2fae22966dd2a634ac4865ead3c6937eee9 /drivers/tty
parent305559f16538708b603ceeb317ebaed9c4da9ce9 (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/tty')
-rw-r--r--drivers/tty/hvc/hvc_xen.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/tty/hvc/hvc_xen.c b/drivers/tty/hvc/hvc_xen.c
index 2dc2831840ca..c3d8af917ffc 100644
--- a/drivers/tty/hvc/hvc_xen.c
+++ b/drivers/tty/hvc/hvc_xen.c
@@ -347,8 +347,6 @@ static int xen_console_remove(struct xencons_info *info)
347} 347}
348 348
349#ifdef CONFIG_HVC_XEN_FRONTEND 349#ifdef CONFIG_HVC_XEN_FRONTEND
350static struct xenbus_driver xencons_driver;
351
352static int xencons_remove(struct xenbus_device *dev) 350static int xencons_remove(struct xenbus_device *dev)
353{ 351{
354 return xen_console_remove(dev_get_drvdata(&dev->dev)); 352 return xen_console_remove(dev_get_drvdata(&dev->dev));
@@ -502,13 +500,14 @@ static const struct xenbus_device_id xencons_ids[] = {
502 { "" } 500 { "" }
503}; 501};
504 502
505 503static struct xenbus_driver xencons_driver = {
506static DEFINE_XENBUS_DRIVER(xencons, "xenconsole", 504 .name = "xenconsole",
505 .ids = xencons_ids,
507 .probe = xencons_probe, 506 .probe = xencons_probe,
508 .remove = xencons_remove, 507 .remove = xencons_remove,
509 .resume = xencons_resume, 508 .resume = xencons_resume,
510 .otherend_changed = xencons_backend_changed, 509 .otherend_changed = xencons_backend_changed,
511); 510};
512#endif /* CONFIG_HVC_XEN_FRONTEND */ 511#endif /* CONFIG_HVC_XEN_FRONTEND */
513 512
514static int __init xen_hvc_init(void) 513static int __init xen_hvc_init(void)