From: Greg Kroah-Hartman Date: Wed, 26 Jul 2006 00:13:31 +0000 (-0700) Subject: Driver core: change mem class_devices to be real devices X-Git-Tag: v2.6.20-rc1~34^2~40^2~474^2~13 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebf644c4623bc3eb57683199cd2b9080028b0f6f;p=linux-2.6 Driver core: change mem class_devices to be real devices Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/char/mem.c b/drivers/char/mem.c index 55473371b7..e67eef4867 100644 --- a/drivers/char/mem.c +++ b/drivers/char/mem.c @@ -980,10 +980,10 @@ 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, - MKDEV(MEM_MAJOR, devlist[i].minor), - NULL, devlist[i].name); - + device_create(mem_class, NULL, + MKDEV(MEM_MAJOR, devlist[i].minor), + devlist[i].name); + return 0; }