diff options
Diffstat (limited to 'drivers/misc/phantom.c')
-rw-r--r-- | drivers/misc/phantom.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/misc/phantom.c b/drivers/misc/phantom.c index daf585689ce3..abdebe347383 100644 --- a/drivers/misc/phantom.c +++ b/drivers/misc/phantom.c | |||
@@ -399,9 +399,9 @@ static int __devinit phantom_probe(struct pci_dev *pdev, | |||
399 | goto err_irq; | 399 | goto err_irq; |
400 | } | 400 | } |
401 | 401 | ||
402 | if (IS_ERR(device_create_drvdata(phantom_class, &pdev->dev, | 402 | if (IS_ERR(device_create(phantom_class, &pdev->dev, |
403 | MKDEV(phantom_major, minor), | 403 | MKDEV(phantom_major, minor), NULL, |
404 | NULL, "phantom%u", minor))) | 404 | "phantom%u", minor))) |
405 | dev_err(&pdev->dev, "can't create device\n"); | 405 | dev_err(&pdev->dev, "can't create device\n"); |
406 | 406 | ||
407 | pci_set_drvdata(pdev, pht); | 407 | pci_set_drvdata(pdev, pht); |