Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44625
b: refs/heads/master
c: 9825d73
h: refs/heads/master
i:
  44623: 6078559
v: v3
  • Loading branch information
Akinobu Mita authored and Jeff Garzik committed Dec 16, 2006
1 parent 8bd220c commit db4dd95
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 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: 551c012d7eea3dc5ec063c7ff9c718d39e77634f
refs/heads/master: 9825d73ceb6cad9b9c2ee2dc2971b58dbe8623cd
4 changes: 3 additions & 1 deletion trunk/drivers/ata/pata_legacy.c
Original file line number Diff line number Diff line change
Expand Up @@ -698,8 +698,10 @@ static __init int legacy_init_one(int port, unsigned long io, unsigned long ctrl
goto fail_io;

pdev = platform_device_register_simple(DRV_NAME, nr_legacy_host, NULL, 0);
if (pdev == NULL)
if (IS_ERR(pdev)) {
ret = PTR_ERR(pdev);
goto fail_dev;
}

if (ht6560a & mask) {
ops = &ht6560a_port_ops;
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/ata/pata_qdi.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ static __init int qdi_init_one(unsigned long port, int type, unsigned long io, i
*/

pdev = platform_device_register_simple(DRV_NAME, nr_qdi_host, NULL, 0);
if (pdev == NULL)
return -ENOMEM;
if (IS_ERR(pdev))
return PTR_ERR(pdev);

memset(&ae, 0, sizeof(struct ata_probe_ent));
INIT_LIST_HEAD(&ae.node);
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/ata/pata_winbond.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ static __init int winbond_init_one(unsigned long port)
*/

pdev = platform_device_register_simple(DRV_NAME, nr_winbond_host, NULL, 0);
if (pdev == NULL)
return -ENOMEM;
if (IS_ERR(pdev))
return PTR_ERR(pdev);

memset(&ae, 0, sizeof(struct ata_probe_ent));
INIT_LIST_HEAD(&ae.node);
Expand Down

0 comments on commit db4dd95

Please sign in to comment.