diff options
Diffstat (limited to 'drivers/tty/hvc')
-rw-r--r-- | drivers/tty/hvc/hvc_xen.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/tty/hvc/hvc_xen.c b/drivers/tty/hvc/hvc_xen.c index 2967f0388d2c..f1e57425e39f 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 |
350 | static struct xenbus_driver xencons_driver; | ||
351 | |||
352 | static int xencons_remove(struct xenbus_device *dev) | 350 | static 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)); |
@@ -499,13 +497,14 @@ static const struct xenbus_device_id xencons_ids[] = { | |||
499 | { "" } | 497 | { "" } |
500 | }; | 498 | }; |
501 | 499 | ||
502 | 500 | static struct xenbus_driver xencons_driver = { | |
503 | static DEFINE_XENBUS_DRIVER(xencons, "xenconsole", | 501 | .name = "xenconsole", |
502 | .ids = xencons_ids, | ||
504 | .probe = xencons_probe, | 503 | .probe = xencons_probe, |
505 | .remove = xencons_remove, | 504 | .remove = xencons_remove, |
506 | .resume = xencons_resume, | 505 | .resume = xencons_resume, |
507 | .otherend_changed = xencons_backend_changed, | 506 | .otherend_changed = xencons_backend_changed, |
508 | ); | 507 | }; |
509 | #endif /* CONFIG_HVC_XEN_FRONTEND */ | 508 | #endif /* CONFIG_HVC_XEN_FRONTEND */ |
510 | 509 | ||
511 | static int __init xen_hvc_init(void) | 510 | static int __init xen_hvc_init(void) |