diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-07-03 13:49:45 -0400 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-07-03 13:49:45 -0400 |
| commit | 026477c1141b67e98e3bd8bdedb7d4b88a3ecd09 (patch) | |
| tree | 2624a44924c625c367f3cebf937853b9da2de282 /drivers/char/raw.c | |
| parent | 9f2fa466383ce100b90fe52cb4489d7a26bf72a9 (diff) | |
| parent | 29454dde27d8e340bb1987bad9aa504af7081eba (diff) | |
Merge branch 'master' of /home/trondmy/kernel/linux-2.6/
Diffstat (limited to 'drivers/char/raw.c')
| -rw-r--r-- | drivers/char/raw.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/char/raw.c b/drivers/char/raw.c index 15a7b4086524..9bf97c5e38c0 100644 --- a/drivers/char/raw.c +++ b/drivers/char/raw.c | |||
| @@ -10,7 +10,6 @@ | |||
| 10 | 10 | ||
| 11 | #include <linux/init.h> | 11 | #include <linux/init.h> |
| 12 | #include <linux/fs.h> | 12 | #include <linux/fs.h> |
| 13 | #include <linux/devfs_fs_kernel.h> | ||
| 14 | #include <linux/major.h> | 13 | #include <linux/major.h> |
| 15 | #include <linux/blkdev.h> | 14 | #include <linux/blkdev.h> |
| 16 | #include <linux/module.h> | 15 | #include <linux/module.h> |
| @@ -288,7 +287,6 @@ static struct cdev raw_cdev = { | |||
| 288 | 287 | ||
| 289 | static int __init raw_init(void) | 288 | static int __init raw_init(void) |
| 290 | { | 289 | { |
| 291 | int i; | ||
| 292 | dev_t dev = MKDEV(RAW_MAJOR, 0); | 290 | dev_t dev = MKDEV(RAW_MAJOR, 0); |
| 293 | 291 | ||
| 294 | if (register_chrdev_region(dev, MAX_RAW_MINORS, "raw")) | 292 | if (register_chrdev_region(dev, MAX_RAW_MINORS, "raw")) |
| @@ -310,13 +308,6 @@ static int __init raw_init(void) | |||
| 310 | } | 308 | } |
| 311 | class_device_create(raw_class, NULL, MKDEV(RAW_MAJOR, 0), NULL, "rawctl"); | 309 | class_device_create(raw_class, NULL, MKDEV(RAW_MAJOR, 0), NULL, "rawctl"); |
| 312 | 310 | ||
| 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; | 311 | return 0; |
| 321 | 312 | ||
| 322 | error: | 313 | error: |
| @@ -326,12 +317,6 @@ error: | |||
| 326 | 317 | ||
| 327 | static void __exit raw_exit(void) | 318 | static void __exit raw_exit(void) |
| 328 | { | 319 | { |
| 329 | int i; | ||
| 330 | |||
| 331 | for (i = 1; i < MAX_RAW_MINORS; i++) | ||
| 332 | devfs_remove("raw/raw%d", i); | ||
| 333 | devfs_remove("raw/rawctl"); | ||
| 334 | devfs_remove("raw"); | ||
| 335 | class_device_destroy(raw_class, MKDEV(RAW_MAJOR, 0)); | 320 | class_device_destroy(raw_class, MKDEV(RAW_MAJOR, 0)); |
| 336 | class_destroy(raw_class); | 321 | class_destroy(raw_class); |
| 337 | cdev_del(&raw_cdev); | 322 | cdev_del(&raw_cdev); |
