Skip to contentSkip to conversation

name the xencons driver

PATCH New Alex Williamson 1 participant 1 message Dec 13, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 name the xencons driver

Keir,

Here's one other trivial patch for the xen console that I noticed.
The current driver doesn't set it's driver_name field. This results in an "unknown" driver when you cat /proc/tty/drivers. We might was well give it a name. I have no attachment to "xencons" if you'd like to change it to something else. Thanks,

Alex

---

linux-2.6-xen-sparse/drivers/xen/console/console.c Tue Dec 13 15:05:01 2005 renamed from linux-2.6-xen-sparse/drivers/xen/console/console.c Sun Dec 4 19:12:00 2005 +1 -0
diff -r 0255f48b757f linux-2.6-xen-sparse/drivers/xen/console/console.c
@@ -628,6 +630,7 @@
        if (xencons_driver == NULL)
                return -ENOMEM;
 
+       DRV(xencons_driver)->driver_name     = "xencons";
        DRV(xencons_driver)->major           = TTY_MAJOR;
        DRV(xencons_driver)->type            = TTY_DRIVER_TYPE_SERIAL;
        DRV(xencons_driver)->subtype         = SERIAL_TYPE_NORMAL;