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/raw.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/raw.c')
-rw-r--r-- | drivers/char/raw.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/char/raw.c b/drivers/char/raw.c index 15a7b4086524..72c8ee4c0069 100644 --- a/drivers/char/raw.c +++ b/drivers/char/raw.c | |||
@@ -288,7 +288,6 @@ static struct cdev raw_cdev = { | |||
288 | 288 | ||
289 | static int __init raw_init(void) | 289 | static int __init raw_init(void) |
290 | { | 290 | { |
291 | int i; | ||
292 | dev_t dev = MKDEV(RAW_MAJOR, 0); | 291 | dev_t dev = MKDEV(RAW_MAJOR, 0); |
293 | 292 | ||
294 | if (register_chrdev_region(dev, MAX_RAW_MINORS, "raw")) | 293 | if (register_chrdev_region(dev, MAX_RAW_MINORS, "raw")) |
@@ -310,13 +309,6 @@ static int __init raw_init(void) | |||
310 | } | 309 | } |
311 | class_device_create(raw_class, NULL, MKDEV(RAW_MAJOR, 0), NULL, "rawctl"); | 310 | class_device_create(raw_class, NULL, MKDEV(RAW_MAJOR, 0), NULL, "rawctl"); |
312 | 311 | ||
313 | devfs_mk_cdev(MKDEV(RAW_MAJOR, 0), | ||
314 | S_IFCHR | S_IRUGO | S_IWUGO, | ||
315 | "raw/rawctl"); | ||
316 | for (i = 1; i < MAX_RAW_MINORS; i++) | ||
317 | devfs_mk_cdev(MKDEV(RAW_MAJOR, i), | ||
318 | S_IFCHR | S_IRUGO | S_IWUGO, | ||
319 | "raw/raw%d", i); | ||
320 | return 0; | 312 | return 0; |
321 | 313 | ||
322 | error: | 314 | error: |