Commit 3ba0daed authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

driver core: fix up tty code to work with the new class changes.

Note, tty_class will be flushed out in the future, this is just to
get things building again properly.
parent 43ce18db
...@@ -2288,17 +2288,16 @@ void __init console_init(void) ...@@ -2288,17 +2288,16 @@ void __init console_init(void)
extern int vty_init(void); extern int vty_init(void);
#endif #endif
struct device_class tty_devclass = { static struct class tty_class = {
.name = "tty", .name = "tty",
}; };
EXPORT_SYMBOL(tty_devclass);
static int __init tty_devclass_init(void) static int __init tty_class_init(void)
{ {
return devclass_register(&tty_devclass); return class_register(&tty_class);
} }
postcore_initcall(tty_devclass_init); postcore_initcall(tty_class_init);
/* /*
* Ok, now we can initialize the rest of the tty devices and can count * Ok, now we can initialize the rest of the tty devices and can count
......
...@@ -129,7 +129,6 @@ static struct ecard_driver serial_card_driver = { ...@@ -129,7 +129,6 @@ static struct ecard_driver serial_card_driver = {
.remove = __devexit_p(serial_card_remove), .remove = __devexit_p(serial_card_remove),
.id_table = serial_cids, .id_table = serial_cids,
.drv = { .drv = {
.devclass = &tty_devclass,
.name = "8250_acorn", .name = "8250_acorn",
}, },
}; };
......
...@@ -2044,9 +2044,6 @@ static struct pci_driver serial_pci_driver = { ...@@ -2044,9 +2044,6 @@ static struct pci_driver serial_pci_driver = {
.suspend = pciserial_suspend_one, .suspend = pciserial_suspend_one,
.resume = pciserial_resume_one, .resume = pciserial_resume_one,
.id_table = serial_pci_tbl, .id_table = serial_pci_tbl,
.driver = {
.devclass = &tty_devclass,
},
}; };
static int __init serial8250_pci_init(void) static int __init serial8250_pci_init(void)
......
...@@ -879,7 +879,6 @@ static int sa1100_serial_resume(struct device *dev, u32 level) ...@@ -879,7 +879,6 @@ static int sa1100_serial_resume(struct device *dev, u32 level)
static struct device_driver sa11x0_serial_driver = { static struct device_driver sa11x0_serial_driver = {
.name = "sa11x0_serial", .name = "sa11x0_serial",
.bus = &system_bus_type, .bus = &system_bus_type,
.devclass = &tty_devclass,
.suspend = sa1100_serial_suspend, .suspend = sa1100_serial_suspend,
.resume = sa1100_serial_resume, .resume = sa1100_serial_resume,
}; };
......
...@@ -142,7 +142,6 @@ int usb_serial_bus_register(struct usb_serial_device_type *device) ...@@ -142,7 +142,6 @@ int usb_serial_bus_register(struct usb_serial_device_type *device)
device->driver.bus = &usb_serial_bus_type; device->driver.bus = &usb_serial_bus_type;
device->driver.probe = usb_serial_device_probe; device->driver.probe = usb_serial_device_probe;
device->driver.remove = usb_serial_device_remove; device->driver.remove = usb_serial_device_remove;
device->driver.devclass = &tty_devclass;
retval = driver_register(&device->driver); retval = driver_register(&device->driver);
......
...@@ -231,6 +231,4 @@ extern struct list_head tty_drivers; ...@@ -231,6 +231,4 @@ extern struct list_head tty_drivers;
#define SERIAL_TYPE_NORMAL 1 #define SERIAL_TYPE_NORMAL 1
#define SERIAL_TYPE_CALLOUT 2 #define SERIAL_TYPE_CALLOUT 2
extern struct device_class tty_devclass;
#endif /* #ifdef _LINUX_TTY_DRIVER_H */ #endif /* #ifdef _LINUX_TTY_DRIVER_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment