Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 123017
b: refs/heads/master
c: d4ad304
h: refs/heads/master
i:
  123015: 8495696
v: v3
  • Loading branch information
Masakazu Mokuno authored and Paul Mackerras committed Nov 5, 2008
1 parent f1aa46f commit 3d42046
Show file tree
Hide file tree
Showing 2 changed files with 25 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: 3cc698789a3f44dabc5eed389b6c123caf787c0f
refs/heads/master: d4ad304841a9790d4fa35e51d6aa9baeba631559
29 changes: 24 additions & 5 deletions trunk/arch/powerpc/platforms/ps3/device-init.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,11 +314,17 @@ static int __init ps3_setup_vuart_device(enum ps3_match_id match_id,

result = ps3_system_bus_device_register(&p->dev);

if (result)
if (result) {
pr_debug("%s:%d ps3_system_bus_device_register failed\n",
__func__, __LINE__);

goto fail_device_register;
}
pr_debug(" <- %s:%d\n", __func__, __LINE__);
return 0;

fail_device_register:
kfree(p);
pr_debug(" <- %s:%d fail\n", __func__, __LINE__);
return result;
}

Expand Down Expand Up @@ -463,11 +469,17 @@ static int __init ps3_register_sound_devices(void)

result = ps3_system_bus_device_register(&p->dev);

if (result)
if (result) {
pr_debug("%s:%d ps3_system_bus_device_register failed\n",
__func__, __LINE__);

goto fail_device_register;
}
pr_debug(" <- %s:%d\n", __func__, __LINE__);
return 0;

fail_device_register:
kfree(p);
pr_debug(" <- %s:%d failed\n", __func__, __LINE__);
return result;
}

Expand All @@ -491,11 +503,18 @@ static int __init ps3_register_graphics_devices(void)

result = ps3_system_bus_device_register(&p->dev);

if (result)
if (result) {
pr_debug("%s:%d ps3_system_bus_device_register failed\n",
__func__, __LINE__);
goto fail_device_register;
}

pr_debug(" <- %s:%d\n", __func__, __LINE__);
return 0;

fail_device_register:
kfree(p);
pr_debug(" <- %s:%d failed\n", __func__, __LINE__);
return result;
}

Expand Down

0 comments on commit 3d42046

Please sign in to comment.