Skip to content

Commit ebf644c

Browse files
committed
Driver core: change mem class_devices to be real devices
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent 78cde08 commit ebf644c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎drivers/char/mem.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -980,10 +980,10 @@ static int __init chr_dev_init(void)
980980

981981
mem_class = class_create(THIS_MODULE, "mem");
982982
for (i = 0; i < ARRAY_SIZE(devlist); i++)
983-
class_device_create(mem_class, NULL,
984-
MKDEV(MEM_MAJOR, devlist[i].minor),
985-
NULL, devlist[i].name);
986-
983+
device_create(mem_class, NULL,
984+
MKDEV(MEM_MAJOR, devlist[i].minor),
985+
devlist[i].name);
986+
987987
return 0;
988988
}
989989

0 commit comments

Comments
 (0)