Messages in this thread Patch in this message | | | Date | Wed, 9 Jun 2004 10:50:59 +0100 (BST) | From | Steve Hill <> | Subject | [PATCH] Cyclades Cyclom-Y devfs support |
| |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The attached patch corrects a bug which prevented the Cyclades async multiport serial driver from registering it's devfs entries. The patch is against the stock 2.4.24 kernel sources.
- - Steve Hill Senior Software Developer Email: steve@navaho.co.uk Navaho Technologies Ltd. Tel: +44-870-7034015
... Alcohol and calculus don't mix - Don't drink and derive! ...
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) Comment: Public key available at http://linux.navaho.co.uk/pubkey.steve.txt
iD8DBQFAxt2Gb26jEkrydY4RAjS9AKDD4TkCWRzqjB09t6anrW0YgYzBegCfURxt 7FU5EtCklEqfjv1oKhWj/6I= =pjoq -----END PGP SIGNATURE-----diff -urN linux-2.4.24.vanilla/drivers/char/cyclades.c linux-2.4.24/drivers/char/cyclades.c --- linux-2.4.24.vanilla/drivers/char/cyclades.c Fri Jun 13 15:51:32 2003 +++ linux-2.4.24/drivers/char/cyclades.c Thu Jun 3 11:47:49 2004 @@ -5511,7 +5511,11 @@ memset(&cy_serial_driver, 0, sizeof(struct tty_driver)); cy_serial_driver.magic = TTY_DRIVER_MAGIC; cy_serial_driver.driver_name = "cyclades"; +#if (LINUX_VERSION_CODE > 0x2032D && defined(CONFIG_DEVFS_FS)) + cy_serial_driver.name = "ttyC/%d"; +#else cy_serial_driver.name = "ttyC"; +#endif cy_serial_driver.major = CYCLADES_MAJOR; cy_serial_driver.minor_start = 0; cy_serial_driver.num = NR_PORTS; @@ -5550,7 +5554,11 @@ * major number and the subtype code. */ cy_callout_driver = cy_serial_driver; +#if (LINUX_VERSION_CODE > 0x2032D && defined(CONFIG_DEVFS_FS)) + cy_callout_driver.name = "cub/%d"; +#else cy_callout_driver.name = "cub"; +#endif cy_callout_driver.major = CYCLADESAUX_MAJOR; cy_callout_driver.subtype = SERIAL_TYPE_CALLOUT; cy_callout_driver.read_proc = 0; | |