diff options
Diffstat (limited to 'drivers/mtd/mtdchar.c')
-rw-r--r-- | drivers/mtd/mtdchar.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mtd/mtdchar.c b/drivers/mtd/mtdchar.c index 4b3c6263e7fc..8c0d94b72b63 100644 --- a/drivers/mtd/mtdchar.c +++ b/drivers/mtd/mtdchar.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/slab.h> | 13 | #include <linux/slab.h> |
14 | #include <linux/init.h> | 14 | #include <linux/init.h> |
15 | #include <linux/fs.h> | 15 | #include <linux/fs.h> |
16 | #include <linux/sched.h> /* TASK_* */ | ||
16 | #include <asm/uaccess.h> | 17 | #include <asm/uaccess.h> |
17 | 18 | ||
18 | #include <linux/device.h> | 19 | #include <linux/device.h> |
@@ -24,10 +25,10 @@ static void mtd_notify_add(struct mtd_info* mtd) | |||
24 | if (!mtd) | 25 | if (!mtd) |
25 | return; | 26 | return; |
26 | 27 | ||
27 | class_device_create(mtd_class, MKDEV(MTD_CHAR_MAJOR, mtd->index*2), | 28 | class_device_create(mtd_class, NULL, MKDEV(MTD_CHAR_MAJOR, mtd->index*2), |
28 | NULL, "mtd%d", mtd->index); | 29 | NULL, "mtd%d", mtd->index); |
29 | 30 | ||
30 | class_device_create(mtd_class, | 31 | class_device_create(mtd_class, NULL, |
31 | MKDEV(MTD_CHAR_MAJOR, mtd->index*2+1), | 32 | MKDEV(MTD_CHAR_MAJOR, mtd->index*2+1), |
32 | NULL, "mtd%dro", mtd->index); | 33 | NULL, "mtd%dro", mtd->index); |
33 | } | 34 | } |