lkml.org 
[lkml]   [2004]   [Jun]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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;
\
 
 \ /
  Last update: 2005-03-22 14:03    [W:0.029 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site