diff options
Diffstat (limited to 'drivers/char/mem.c')
-rw-r--r-- | drivers/char/mem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/char/mem.c b/drivers/char/mem.c index 672b08e694d0..6431f6921a67 100644 --- a/drivers/char/mem.c +++ b/drivers/char/mem.c | |||
@@ -992,9 +992,9 @@ static int __init chr_dev_init(void) | |||
992 | 992 | ||
993 | mem_class = class_create(THIS_MODULE, "mem"); | 993 | mem_class = class_create(THIS_MODULE, "mem"); |
994 | for (i = 0; i < ARRAY_SIZE(devlist); i++) | 994 | for (i = 0; i < ARRAY_SIZE(devlist); i++) |
995 | device_create_drvdata(mem_class, NULL, | 995 | device_create(mem_class, NULL, |
996 | MKDEV(MEM_MAJOR, devlist[i].minor), | 996 | MKDEV(MEM_MAJOR, devlist[i].minor), NULL, |
997 | NULL, devlist[i].name); | 997 | devlist[i].name); |
998 | 998 | ||
999 | return 0; | 999 | return 0; |
1000 | } | 1000 | } |