Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 370749
b: refs/heads/master
c: 09652b0
h: refs/heads/master
i:
  370747: fd57a51
v: v3
  • Loading branch information
Adrian-Leonard Radu authored and Michael Ellerman committed Apr 18, 2013
1 parent 6fcd426 commit 32b41b1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 12 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: db38f290cadc16304b84f6d18cbaa06251dde875
refs/heads/master: 09652b00cd249a1f1a2cd1a70d31e880f24d06cc
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/kernel/iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ static int __init fail_iommu_debugfs(void)
struct dentry *dir = fault_create_debugfs_attr("fail_iommu",
NULL, &fail_iommu);

return IS_ERR(dir) ? PTR_ERR(dir) : 0;
return PTR_RET(dir);
}
late_initcall(fail_iommu_debugfs);

Expand Down
4 changes: 1 addition & 3 deletions trunk/arch/powerpc/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -1049,10 +1049,8 @@ static int __init rtc_init(void)
return -ENODEV;

pdev = platform_device_register_simple("rtc-generic", -1, NULL, 0);
if (IS_ERR(pdev))
return PTR_ERR(pdev);

return 0;
return PTR_RET(pdev);
}

module_init(rtc_init);
4 changes: 1 addition & 3 deletions trunk/arch/powerpc/platforms/ps3/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,8 @@ static int __init ps3_rtc_init(void)
return -ENODEV;

pdev = platform_device_register_simple("rtc-ps3", -1, NULL, 0);
if (IS_ERR(pdev))
return PTR_ERR(pdev);

return 0;
return PTR_RET(pdev);
}

module_init(ps3_rtc_init);
5 changes: 1 addition & 4 deletions trunk/arch/powerpc/sysdev/rtc_cmos_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,7 @@ static int __init add_rtc(void)
pd = platform_device_register_simple("rtc_cmos", -1,
&res[0], num_res);

if (IS_ERR(pd))
return PTR_ERR(pd);

return 0;
return PTR_RET(pd);
}
fs_initcall(add_rtc);

Expand Down

0 comments on commit 32b41b1

Please sign in to comment.