diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2005-06-21 00:15:16 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-06-26 15:25:07 -0400 |
commit | 7c69ef79741910883d5543caafa06aca3ebadbd1 (patch) | |
tree | 655d3f60abee0195d0aadb2c86ab04ccca89a307 /drivers/char/stallion.c | |
parent | 1a715c5cf917326a285533d1116d725f5f2593c2 (diff) |
[PATCH] devfs: Remove devfs_mk_cdev() function from the kernel tree
Removes the devfs_mk_cdev() function and all callers of it.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/char/stallion.c')
-rw-r--r-- | drivers/char/stallion.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/char/stallion.c b/drivers/char/stallion.c index c090a63fbdea..a1a68f90d803 100644 --- a/drivers/char/stallion.c +++ b/drivers/char/stallion.c | |||
@@ -3071,14 +3071,10 @@ static int __init stl_init(void) | |||
3071 | printk("STALLION: failed to register serial board device\n"); | 3071 | printk("STALLION: failed to register serial board device\n"); |
3072 | 3072 | ||
3073 | stallion_class = class_create(THIS_MODULE, "staliomem"); | 3073 | stallion_class = class_create(THIS_MODULE, "staliomem"); |
3074 | for (i = 0; i < 4; i++) { | 3074 | for (i = 0; i < 4; i++) |
3075 | devfs_mk_cdev(MKDEV(STL_SIOMEMMAJOR, i), | ||
3076 | S_IFCHR|S_IRUSR|S_IWUSR, | ||
3077 | "staliomem/%d", i); | ||
3078 | class_device_create(stallion_class, NULL, | 3075 | class_device_create(stallion_class, NULL, |
3079 | MKDEV(STL_SIOMEMMAJOR, i), NULL, | 3076 | MKDEV(STL_SIOMEMMAJOR, i), NULL, |
3080 | "staliomem%d", i); | 3077 | "staliomem%d", i); |
3081 | } | ||
3082 | 3078 | ||
3083 | stl_serial->owner = THIS_MODULE; | 3079 | stl_serial->owner = THIS_MODULE; |
3084 | stl_serial->driver_name = stl_drvname; | 3080 | stl_serial->driver_name = stl_drvname; |