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/bsr.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/bsr.c')
-rw-r--r-- | drivers/char/bsr.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/char/bsr.c b/drivers/char/bsr.c index b650b4e48e50..456f54db73e2 100644 --- a/drivers/char/bsr.c +++ b/drivers/char/bsr.c | |||
@@ -229,9 +229,8 @@ static int bsr_create_devs(struct device_node *bn) | |||
229 | if (result) | 229 | if (result) |
230 | goto out_err; | 230 | goto out_err; |
231 | 231 | ||
232 | cur->bsr_device = device_create_drvdata(bsr_class, NULL, | 232 | cur->bsr_device = device_create(bsr_class, NULL, cur->bsr_dev, |
233 | cur->bsr_dev, | 233 | cur, cur->bsr_name); |
234 | cur, cur->bsr_name); | ||
235 | if (!cur->bsr_device) { | 234 | if (!cur->bsr_device) { |
236 | printk(KERN_ERR "device_create failed for %s\n", | 235 | printk(KERN_ERR "device_create failed for %s\n", |
237 | cur->bsr_name); | 236 | cur->bsr_name); |