Commit ebf644c4 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

Driver core: change mem class_devices to be real devices

Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 78cde088
...@@ -980,9 +980,9 @@ static int __init chr_dev_init(void) ...@@ -980,9 +980,9 @@ static int __init chr_dev_init(void)
mem_class = class_create(THIS_MODULE, "mem"); mem_class = class_create(THIS_MODULE, "mem");
for (i = 0; i < ARRAY_SIZE(devlist); i++) for (i = 0; i < ARRAY_SIZE(devlist); i++)
class_device_create(mem_class, NULL, device_create(mem_class, NULL,
MKDEV(MEM_MAJOR, devlist[i].minor), MKDEV(MEM_MAJOR, devlist[i].minor),
NULL, devlist[i].name); devlist[i].name);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment