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:41 -0400 |
commit | 1ff9f542e5f87c299226557ce5e67a402ed4b502 (patch) | |
tree | 964bd7293fbf607f6a7a329d9fc40e0a2b798a96 /drivers/block/pktcdvd.c | |
parent | ae87221d3ce49d9de1e43756da834fd0bf05a2ad (diff) |
device create: block: 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/block/pktcdvd.c')
-rw-r--r-- | drivers/block/pktcdvd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c index 0e077150568b..195ca7c720f5 100644 --- a/drivers/block/pktcdvd.c +++ b/drivers/block/pktcdvd.c | |||
@@ -302,9 +302,8 @@ static struct kobj_type kobj_pkt_type_wqueue = { | |||
302 | static void pkt_sysfs_dev_new(struct pktcdvd_device *pd) | 302 | static void pkt_sysfs_dev_new(struct pktcdvd_device *pd) |
303 | { | 303 | { |
304 | if (class_pktcdvd) { | 304 | if (class_pktcdvd) { |
305 | pd->dev = device_create_drvdata(class_pktcdvd, NULL, | 305 | pd->dev = device_create(class_pktcdvd, NULL, pd->pkt_dev, NULL, |
306 | pd->pkt_dev, NULL, | 306 | "%s", pd->name); |
307 | "%s", pd->name); | ||
308 | if (IS_ERR(pd->dev)) | 307 | if (IS_ERR(pd->dev)) |
309 | pd->dev = NULL; | 308 | pd->dev = NULL; |
310 | } | 309 | } |