[lkml]   [2003]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subjectserial_cs with devfs
    in serial_cs.c there is a hardcoded device name in the code, stating
    ttySx, that's not the right thing with devfs..
    here's a patch of my own (should work also on the latest prepatch),
    just to show the problem, i think that the defines around it could be
    more carefully chosen, but what's the deal.. have a nice day.
    _N3X_ <>

    diff -ru linux-2.4.19/drivers/char/pcmcia/serial_cs.c linux-2.4.19-fix/drivers/char/pcmcia/serial_cs.c
    --- linux-2.4.19/drivers/char/pcmcia/serial_cs.c 2001-12-21 18:41:54.000000000 +0100
    +++ linux-2.4.19-fix/drivers/char/pcmcia/serial_cs.c 2002-11-06 10:14:07.000000000 +0100
    @@ -256,7 +256,11 @@

    info->line[info->ndev] = line;
    +#ifdef CONFIG_DEVFS_FS
    + sprintf(info->node[info->ndev].dev_name, "tts/%d", line);
    sprintf(info->node[info->ndev].dev_name, "ttyS%d", line);
    +#endif /* CONFIG_DEVFS_FS */
    info->node[info->ndev].major = TTY_MAJOR;
    info->node[info->ndev].minor = 0x40+line;
    if (info->ndev > 0)
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:33    [W:0.026 / U:10.820 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site