diff options
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 | } |