diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-29 17:19:21 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-29 17:19:21 -0400 |
commit | 602cada851b28c5792339786efe872fbdc1f5d41 (patch) | |
tree | 233d474b74d6038b5bb54a07ad91dd1bb10b0218 /drivers/isdn/gigaset | |
parent | 82991c6f2c361acc17279b8124d9bf1878973435 (diff) | |
parent | fee68d1cc0d9bd863e51c16cdcd707737b16bb38 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/devfs-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/devfs-2.6: (22 commits)
[PATCH] devfs: Remove it from the feature_removal.txt file
[PATCH] devfs: Last little devfs cleanups throughout the kernel tree.
[PATCH] devfs: Rename TTY_DRIVER_NO_DEVFS to TTY_DRIVER_DYNAMIC_DEV
[PATCH] devfs: Remove the tty_driver devfs_name field as it's no longer needed
[PATCH] devfs: Remove the line_driver devfs_name field as it's no longer needed
[PATCH] devfs: Remove the videodevice devfs_name field as it's no longer needed
[PATCH] devfs: Remove the gendisk devfs_name field as it's no longer needed
[PATCH] devfs: Remove the miscdevice devfs_name field as it's no longer needed
[PATCH] devfs: Remove the devfs_fs_kernel.h file from the tree
[PATCH] devfs: Remove devfs_remove() function from the kernel tree
[PATCH] devfs: Remove devfs_mk_cdev() function from the kernel tree
[PATCH] devfs: Remove devfs_mk_bdev() function from the kernel tree
[PATCH] devfs: Remove devfs_mk_symlink() function from the kernel tree
[PATCH] devfs: Remove devfs_mk_dir() function from the kernel tree
[PATCH] devfs: Remove devfs_*_tape() functions from the kernel tree
[PATCH] devfs: Remove devfs support from the sound subsystem
[PATCH] devfs: Remove devfs support from the ide subsystem.
[PATCH] devfs: Remove devfs support from the serial subsystem
[PATCH] devfs: Remove devfs from the init code
[PATCH] devfs: Remove devfs from the partition code
...
Diffstat (limited to 'drivers/isdn/gigaset')
-rw-r--r-- | drivers/isdn/gigaset/bas-gigaset.c | 4 | ||||
-rw-r--r-- | drivers/isdn/gigaset/common.c | 4 | ||||
-rw-r--r-- | drivers/isdn/gigaset/gigaset.h | 3 | ||||
-rw-r--r-- | drivers/isdn/gigaset/interface.c | 6 | ||||
-rw-r--r-- | drivers/isdn/gigaset/usb-gigaset.c | 4 |
5 files changed, 6 insertions, 15 deletions
diff --git a/drivers/isdn/gigaset/bas-gigaset.c b/drivers/isdn/gigaset/bas-gigaset.c index 8a45715dd4c1..3845defd4901 100644 --- a/drivers/isdn/gigaset/bas-gigaset.c +++ b/drivers/isdn/gigaset/bas-gigaset.c | |||
@@ -41,7 +41,6 @@ MODULE_PARM_DESC(cidmode, "Call-ID mode"); | |||
41 | #define GIGASET_MINORS 1 | 41 | #define GIGASET_MINORS 1 |
42 | #define GIGASET_MINOR 16 | 42 | #define GIGASET_MINOR 16 |
43 | #define GIGASET_MODULENAME "bas_gigaset" | 43 | #define GIGASET_MODULENAME "bas_gigaset" |
44 | #define GIGASET_DEVFSNAME "gig/bas/" | ||
45 | #define GIGASET_DEVNAME "ttyGB" | 44 | #define GIGASET_DEVNAME "ttyGB" |
46 | 45 | ||
47 | /* length limit according to Siemens 3070usb-protokoll.doc ch. 2.1 */ | 46 | /* length limit according to Siemens 3070usb-protokoll.doc ch. 2.1 */ |
@@ -2349,8 +2348,7 @@ static int __init bas_gigaset_init(void) | |||
2349 | /* allocate memory for our driver state and intialize it */ | 2348 | /* allocate memory for our driver state and intialize it */ |
2350 | if ((driver = gigaset_initdriver(GIGASET_MINOR, GIGASET_MINORS, | 2349 | if ((driver = gigaset_initdriver(GIGASET_MINOR, GIGASET_MINORS, |
2351 | GIGASET_MODULENAME, GIGASET_DEVNAME, | 2350 | GIGASET_MODULENAME, GIGASET_DEVNAME, |
2352 | GIGASET_DEVFSNAME, &gigops, | 2351 | &gigops, THIS_MODULE)) == NULL) |
2353 | THIS_MODULE)) == NULL) | ||
2354 | goto error; | 2352 | goto error; |
2355 | 2353 | ||
2356 | /* allocate memory for our device state and intialize it */ | 2354 | /* allocate memory for our device state and intialize it */ |
diff --git a/drivers/isdn/gigaset/common.c b/drivers/isdn/gigaset/common.c index 2a56bf33a673..aca165d43aa0 100644 --- a/drivers/isdn/gigaset/common.c +++ b/drivers/isdn/gigaset/common.c | |||
@@ -1092,14 +1092,12 @@ EXPORT_SYMBOL_GPL(gigaset_freedriver); | |||
1092 | * minors Number of minors this driver can handle | 1092 | * minors Number of minors this driver can handle |
1093 | * procname Name of the driver | 1093 | * procname Name of the driver |
1094 | * devname Name of the device files (prefix without minor number) | 1094 | * devname Name of the device files (prefix without minor number) |
1095 | * devfsname Devfs name of the device files without %d | ||
1096 | * return value: | 1095 | * return value: |
1097 | * Pointer to the gigaset_driver structure on success, NULL on failure. | 1096 | * Pointer to the gigaset_driver structure on success, NULL on failure. |
1098 | */ | 1097 | */ |
1099 | struct gigaset_driver *gigaset_initdriver(unsigned minor, unsigned minors, | 1098 | struct gigaset_driver *gigaset_initdriver(unsigned minor, unsigned minors, |
1100 | const char *procname, | 1099 | const char *procname, |
1101 | const char *devname, | 1100 | const char *devname, |
1102 | const char *devfsname, | ||
1103 | const struct gigaset_ops *ops, | 1101 | const struct gigaset_ops *ops, |
1104 | struct module *owner) | 1102 | struct module *owner) |
1105 | { | 1103 | { |
@@ -1139,7 +1137,7 @@ struct gigaset_driver *gigaset_initdriver(unsigned minor, unsigned minors, | |||
1139 | drv->cs[i].minor_index = i; | 1137 | drv->cs[i].minor_index = i; |
1140 | } | 1138 | } |
1141 | 1139 | ||
1142 | gigaset_if_initdriver(drv, procname, devname, devfsname); | 1140 | gigaset_if_initdriver(drv, procname, devname); |
1143 | 1141 | ||
1144 | spin_lock_irqsave(&driver_lock, flags); | 1142 | spin_lock_irqsave(&driver_lock, flags); |
1145 | list_add(&drv->list, &drivers); | 1143 | list_add(&drv->list, &drivers); |
diff --git a/drivers/isdn/gigaset/gigaset.h b/drivers/isdn/gigaset/gigaset.h index 8d63d822104f..1ca3bfdef51d 100644 --- a/drivers/isdn/gigaset/gigaset.h +++ b/drivers/isdn/gigaset/gigaset.h | |||
@@ -769,7 +769,6 @@ void gigaset_block_channels(struct cardstate *cs); | |||
769 | struct gigaset_driver *gigaset_initdriver(unsigned minor, unsigned minors, | 769 | struct gigaset_driver *gigaset_initdriver(unsigned minor, unsigned minors, |
770 | const char *procname, | 770 | const char *procname, |
771 | const char *devname, | 771 | const char *devname, |
772 | const char *devfsname, | ||
773 | const struct gigaset_ops *ops, | 772 | const struct gigaset_ops *ops, |
774 | struct module *owner); | 773 | struct module *owner); |
775 | 774 | ||
@@ -892,7 +891,7 @@ int gigaset_fill_inbuf(struct inbuf_t *inbuf, const unsigned char *src, | |||
892 | 891 | ||
893 | /* initialize interface */ | 892 | /* initialize interface */ |
894 | void gigaset_if_initdriver(struct gigaset_driver *drv, const char *procname, | 893 | void gigaset_if_initdriver(struct gigaset_driver *drv, const char *procname, |
895 | const char *devname, const char *devfsname); | 894 | const char *devname); |
896 | /* release interface */ | 895 | /* release interface */ |
897 | void gigaset_if_freedriver(struct gigaset_driver *drv); | 896 | void gigaset_if_freedriver(struct gigaset_driver *drv); |
898 | /* add minor */ | 897 | /* add minor */ |
diff --git a/drivers/isdn/gigaset/interface.c b/drivers/isdn/gigaset/interface.c index 74fd234956c8..bd2e4267528e 100644 --- a/drivers/isdn/gigaset/interface.c +++ b/drivers/isdn/gigaset/interface.c | |||
@@ -673,10 +673,9 @@ EXPORT_SYMBOL_GPL(gigaset_if_receive); | |||
673 | * drv Driver | 673 | * drv Driver |
674 | * procname Name of the driver (e.g. for /proc/tty/drivers) | 674 | * procname Name of the driver (e.g. for /proc/tty/drivers) |
675 | * devname Name of the device files (prefix without minor number) | 675 | * devname Name of the device files (prefix without minor number) |
676 | * devfsname Devfs name of the device files without %d | ||
677 | */ | 676 | */ |
678 | void gigaset_if_initdriver(struct gigaset_driver *drv, const char *procname, | 677 | void gigaset_if_initdriver(struct gigaset_driver *drv, const char *procname, |
679 | const char *devname, const char *devfsname) | 678 | const char *devname) |
680 | { | 679 | { |
681 | unsigned minors = drv->minors; | 680 | unsigned minors = drv->minors; |
682 | int ret; | 681 | int ret; |
@@ -692,7 +691,7 @@ void gigaset_if_initdriver(struct gigaset_driver *drv, const char *procname, | |||
692 | tty->major = GIG_MAJOR, | 691 | tty->major = GIG_MAJOR, |
693 | tty->type = TTY_DRIVER_TYPE_SERIAL, | 692 | tty->type = TTY_DRIVER_TYPE_SERIAL, |
694 | tty->subtype = SERIAL_TYPE_NORMAL, | 693 | tty->subtype = SERIAL_TYPE_NORMAL, |
695 | tty->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_NO_DEVFS, | 694 | tty->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV; |
696 | 695 | ||
697 | tty->driver_name = procname; | 696 | tty->driver_name = procname; |
698 | tty->name = devname; | 697 | tty->name = devname; |
@@ -700,7 +699,6 @@ void gigaset_if_initdriver(struct gigaset_driver *drv, const char *procname, | |||
700 | tty->num = drv->minors; | 699 | tty->num = drv->minors; |
701 | 700 | ||
702 | tty->owner = THIS_MODULE; | 701 | tty->owner = THIS_MODULE; |
703 | tty->devfs_name = devfsname; | ||
704 | 702 | ||
705 | tty->init_termios = tty_std_termios; //FIXME | 703 | tty->init_termios = tty_std_termios; //FIXME |
706 | tty->init_termios.c_cflag = B9600 | CS8 | CREAD | HUPCL | CLOCAL; //FIXME | 704 | tty->init_termios.c_cflag = B9600 | CS8 | CREAD | HUPCL | CLOCAL; //FIXME |
diff --git a/drivers/isdn/gigaset/usb-gigaset.c b/drivers/isdn/gigaset/usb-gigaset.c index d86ab68114b0..6e05d9d4a51a 100644 --- a/drivers/isdn/gigaset/usb-gigaset.c +++ b/drivers/isdn/gigaset/usb-gigaset.c | |||
@@ -41,7 +41,6 @@ MODULE_PARM_DESC(cidmode, "Call-ID mode"); | |||
41 | #define GIGASET_MINORS 1 | 41 | #define GIGASET_MINORS 1 |
42 | #define GIGASET_MINOR 8 | 42 | #define GIGASET_MINOR 8 |
43 | #define GIGASET_MODULENAME "usb_gigaset" | 43 | #define GIGASET_MODULENAME "usb_gigaset" |
44 | #define GIGASET_DEVFSNAME "gig/usb/" | ||
45 | #define GIGASET_DEVNAME "ttyGU" | 44 | #define GIGASET_DEVNAME "ttyGU" |
46 | 45 | ||
47 | #define IF_WRITEBUF 2000 //FIXME // WAKEUP_CHARS: 256 | 46 | #define IF_WRITEBUF 2000 //FIXME // WAKEUP_CHARS: 256 |
@@ -896,8 +895,7 @@ static int __init usb_gigaset_init(void) | |||
896 | /* allocate memory for our driver state and intialize it */ | 895 | /* allocate memory for our driver state and intialize it */ |
897 | if ((driver = gigaset_initdriver(GIGASET_MINOR, GIGASET_MINORS, | 896 | if ((driver = gigaset_initdriver(GIGASET_MINOR, GIGASET_MINORS, |
898 | GIGASET_MODULENAME, GIGASET_DEVNAME, | 897 | GIGASET_MODULENAME, GIGASET_DEVNAME, |
899 | GIGASET_DEVFSNAME, &ops, | 898 | &ops, THIS_MODULE)) == NULL) |
900 | THIS_MODULE)) == NULL) | ||
901 | goto error; | 899 | goto error; |
902 | 900 | ||
903 | /* allocate memory for our device state and intialize it */ | 901 | /* allocate memory for our device state and intialize it */ |