mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
PTR_RET is now PTR_ERR_OR_ZERO(): Replace most.
Sweep of the simple cases. Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: Julia Lawall <[email protected]> Signed-off-by: Rusty Russell <[email protected]> Acked-by: David S. Miller <[email protected]> Acked-by: Benjamin Herrenschmidt <[email protected]>
This commit is contained in:
parent
6e8b8726ad
commit
8c6ffba0ed
43 changed files with 47 additions and 47 deletions
|
|
@ -56,7 +56,7 @@ static int __init amiga_init_bus(void)
|
|||
n = AMIGAHW_PRESENT(ZORRO3) ? 4 : 2;
|
||||
pdev = platform_device_register_simple("amiga-zorro", -1,
|
||||
zorro_resources, n);
|
||||
return PTR_RET(pdev);
|
||||
return PTR_ERR_OR_ZERO(pdev);
|
||||
}
|
||||
|
||||
subsys_initcall(amiga_init_bus);
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ static int __init rtc_init(void)
|
|||
return -ENODEV;
|
||||
|
||||
pdev = platform_device_register_simple("rtc-generic", -1, NULL, 0);
|
||||
return PTR_RET(pdev);
|
||||
return PTR_ERR_OR_ZERO(pdev);
|
||||
}
|
||||
|
||||
module_init(rtc_init);
|
||||
|
|
|
|||
|
|
@ -338,6 +338,6 @@ static __init int q40_add_kbd_device(void)
|
|||
return -ENODEV;
|
||||
|
||||
pdev = platform_device_register_simple("q40kbd", -1, NULL, 0);
|
||||
return PTR_RET(pdev);
|
||||
return PTR_ERR_OR_ZERO(pdev);
|
||||
}
|
||||
arch_initcall(q40_add_kbd_device);
|
||||
|
|
|
|||
Loading…
Reference in a new issue