Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97050
b: refs/heads/master
c: 716ad87
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed May 20, 2008
1 parent 9bb3a50 commit 4071abe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 8b485877e0b9eb23c3579f50cca165f75442c6cc
refs/heads/master: 716ad8750a3ffe6b458d52da2d1c01cbf3e2f60d
5 changes: 2 additions & 3 deletions trunk/drivers/ide/ide-probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -648,13 +648,12 @@ static int ide_register_port(ide_hwif_t *hwif)

get_device(&hwif->gendev);

hwif->portdev = device_create(ide_port_class, &hwif->gendev,
MKDEV(0, 0), hwif->name);
hwif->portdev = device_create_drvdata(ide_port_class, &hwif->gendev,
MKDEV(0, 0), hwif, hwif->name);
if (IS_ERR(hwif->portdev)) {
ret = PTR_ERR(hwif->portdev);
device_unregister(&hwif->gendev);
}
dev_set_drvdata(hwif->portdev, hwif);
out:
return ret;
}
Expand Down

0 comments on commit 4071abe

Please sign in to comment.