diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2008-07-21 23:03:34 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-10-16 12:24:42 -0400 |
commit | 03457cd455d042c9ee4cc47c1ed4532257980693 (patch) | |
tree | de926d3e839d363f3414c06906a56d601f224e78 /drivers/char/mem.c | |
parent | 1ff9f542e5f87c299226557ce5e67a402ed4b502 (diff) |
device create: char: convert device_create_drvdata to device_create
Now that device_create() has been audited, rename things back to the
original call to be sane.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/char/mem.c')
-rw-r--r-- | drivers/char/mem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/char/mem.c b/drivers/char/mem.c index 672b08e694d0..6431f6921a67 100644 --- a/drivers/char/mem.c +++ b/drivers/char/mem.c | |||
@@ -992,9 +992,9 @@ static int __init chr_dev_init(void) | |||
992 | 992 | ||
993 | mem_class = class_create(THIS_MODULE, "mem"); | 993 | mem_class = class_create(THIS_MODULE, "mem"); |
994 | for (i = 0; i < ARRAY_SIZE(devlist); i++) | 994 | for (i = 0; i < ARRAY_SIZE(devlist); i++) |
995 | device_create_drvdata(mem_class, NULL, | 995 | device_create(mem_class, NULL, |
996 | MKDEV(MEM_MAJOR, devlist[i].minor), | 996 | MKDEV(MEM_MAJOR, devlist[i].minor), NULL, |
997 | NULL, devlist[i].name); | 997 | devlist[i].name); |
998 | 998 | ||
999 | return 0; | 999 | return 0; |
1000 | } | 1000 | } |