Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

Driver core: change mem class_devices to be real devices

parent 78cde088
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -980,9 +980,9 @@ static int __init chr_dev_init(void)

	mem_class = class_create(THIS_MODULE, "mem");
	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),
					NULL, devlist[i].name);
			      devlist[i].name);

	return 0;
}