summaryrefslogtreecommitdiffstats
path: root/drivers/char/mem.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2006-07-26 02:13:31 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2006-12-01 23:52:00 +0100
commitebf644c4623bc3eb57683199cd2b9080028b0f6f (patch)
tree8d822a5872f419491e6962844382804a5ea40288 /drivers/char/mem.c
parentDriver core: convert fb code to use struct device (diff)
downloadlinux-ebf644c4623bc3eb57683199cd2b9080028b0f6f.tar.xz
linux-ebf644c4623bc3eb57683199cd2b9080028b0f6f.zip
Driver core: change mem class_devices to be real devices
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/char/mem.c')
-rw-r--r--drivers/char/mem.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/char/mem.c b/drivers/char/mem.c
index 55473371b7c6..e67eef4867ba 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;
}