aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/mem.c')
-rw-r--r--drivers/char/mem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/char/mem.c b/drivers/char/mem.c
index 9df928d4f68d..91dd669273e0 100644
--- a/drivers/char/mem.c
+++ b/drivers/char/mem.c
@@ -918,7 +918,8 @@ static int __init chr_dev_init(void)
918 918
919 mem_class = class_create(THIS_MODULE, "mem"); 919 mem_class = class_create(THIS_MODULE, "mem");
920 for (i = 0; i < ARRAY_SIZE(devlist); i++) { 920 for (i = 0; i < ARRAY_SIZE(devlist); i++) {
921 class_device_create(mem_class, MKDEV(MEM_MAJOR, devlist[i].minor), 921 class_device_create(mem_class, NULL,
922 MKDEV(MEM_MAJOR, devlist[i].minor),
922 NULL, devlist[i].name); 923 NULL, devlist[i].name);
923 devfs_mk_cdev(MKDEV(MEM_MAJOR, devlist[i].minor), 924 devfs_mk_cdev(MKDEV(MEM_MAJOR, devlist[i].minor),
924 S_IFCHR | devlist[i].mode, devlist[i].name); 925 S_IFCHR | devlist[i].mode, devlist[i].name);