Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104731
b: refs/heads/master
c: 7da5a05
h: refs/heads/master
i:
  104729: 890009e
  104727: 728eb5b
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jul 22, 2008
1 parent 64c20bc commit c40a264
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 43f98747d48195d92c4102c17d7175bf24df1801
refs/heads/master: 7da5a05dd7b95315af49f724f623bbfdab0f5e4d
5 changes: 3 additions & 2 deletions trunk/drivers/misc/phantom.c
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,9 @@ static int __devinit phantom_probe(struct pci_dev *pdev,
goto err_irq;
}

if (IS_ERR(device_create(phantom_class, &pdev->dev, MKDEV(phantom_major,
minor), "phantom%u", minor)))
if (IS_ERR(device_create_drvdata(phantom_class, &pdev->dev,
MKDEV(phantom_major, minor),
NULL, "phantom%u", minor)))
dev_err(&pdev->dev, "can't create device\n");

pci_set_drvdata(pdev, pht);
Expand Down

0 comments on commit c40a264

Please sign in to comment.