diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2008-05-21 15:52:33 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-07-22 00:54:41 -0400 |
commit | 47aa5793f78c274d51711f6a621fa6b02d4e6402 (patch) | |
tree | 88c45b3a90fc7d7b4210bf5727497294b0a951eb /drivers/char/stallion.c | |
parent | f79f060561d04a38d41e773ade9baafce3c96179 (diff) |
device create: char: convert device_create to device_create_drvdata
device_create() is race-prone, so use the race-free
device_create_drvdata() instead as device_create() is going away.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/char/stallion.c')
-rw-r--r-- | drivers/char/stallion.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/stallion.c b/drivers/char/stallion.c index 0243efb0be95..45aeeeab9f4a 100644 --- a/drivers/char/stallion.c +++ b/drivers/char/stallion.c | |||
@@ -4753,8 +4753,8 @@ static int __init stallion_module_init(void) | |||
4753 | if (IS_ERR(stallion_class)) | 4753 | if (IS_ERR(stallion_class)) |
4754 | printk("STALLION: failed to create class\n"); | 4754 | printk("STALLION: failed to create class\n"); |
4755 | for (i = 0; i < 4; i++) | 4755 | for (i = 0; i < 4; i++) |
4756 | device_create(stallion_class, NULL, MKDEV(STL_SIOMEMMAJOR, i), | 4756 | device_create_drvdata(stallion_class, NULL, MKDEV(STL_SIOMEMMAJOR, i), |
4757 | "staliomem%d", i); | 4757 | NULL, "staliomem%d", i); |
4758 | 4758 | ||
4759 | return 0; | 4759 | return 0; |
4760 | err_unrtty: | 4760 | err_unrtty: |