Messages in this thread Patch in this message | | | Subject | Re: [PATCH] Driver Core update for 2.6.6-rc1 | Date | Thu, 15 Apr 2004 10:41:53 -0700 | From | Greg KH <> |
| |
ChangeSet 1.1643.36.18, 2004/04/12 16:46:07-07:00, marcel@holtmann.org
[PATCH] Fix sysfs class support for CAPI
this patch fixes a bug in the CAPI TTY support, because the ->name value of the TTY driver shouldn't contain a "/". After changing this there are now a "capi20" TTY device and a "capi20" control device and so I renamed the control device to "capi". The userspace visible part must be done by udev and I added these two rules to restore the old namespace:
# CAPI devices KERNEL="capi", NAME="capi20", SYMLINK="isdn/capi20" KERNEL="capi*", NAME="capi/%n"
drivers/isdn/capi/capi.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
diff -Nru a/drivers/isdn/capi/capi.c b/drivers/isdn/capi/capi.c --- a/drivers/isdn/capi/capi.c Thu Apr 15 10:20:08 2004 +++ b/drivers/isdn/capi/capi.c Thu Apr 15 10:20:08 2004 @@ -1312,7 +1312,8 @@ drv->owner = THIS_MODULE; drv->driver_name = "capi_nc"; - drv->name = "capi/"; + drv->devfs_name = "capi/"; + drv->name = "capi"; drv->major = capi_ttymajor; drv->minor_start = 0; drv->type = TTY_DRIVER_TYPE_SERIAL; @@ -1488,7 +1489,7 @@ return PTR_ERR(capi_class); } - class_simple_device_add(capi_class, MKDEV(capi_major, 0), NULL, "capi20"); + class_simple_device_add(capi_class, MKDEV(capi_major, 0), NULL, "capi"); devfs_mk_cdev(MKDEV(capi_major, 0), S_IFCHR | S_IRUSR | S_IWUSR, "isdn/capi20"); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |