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:43 -0400 |
commit | a9b12619f7b6f19c871437ec24a088787a04b1de (patch) | |
tree | ff1b11e7affedccfd69fc20e14876d0821f6e555 /drivers/misc/phantom.c | |
parent | 91bd418fdc8526ee70a0e8f7970b584c8870ae10 (diff) |
device create: misc: 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/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); |