|
@@ -66,7 +66,7 @@ static int __init omap3_l3_init(void)
|
|
|
|
|
|
WARN(IS_ERR(pdev), "could not build omap_device for %s\n", oh_name);
|
|
|
|
|
|
- return IS_ERR(pdev) ? PTR_ERR(pdev) : 0;
|
|
|
+ return PTR_RET(pdev);
|
|
|
}
|
|
|
omap_postcore_initcall(omap3_l3_init);
|
|
|
|
|
@@ -100,7 +100,7 @@ static int __init omap4_l3_init(void)
|
|
|
|
|
|
WARN(IS_ERR(pdev), "could not build omap_device for %s\n", oh_name);
|
|
|
|
|
|
- return IS_ERR(pdev) ? PTR_ERR(pdev) : 0;
|
|
|
+ return PTR_RET(pdev);
|
|
|
}
|
|
|
omap_postcore_initcall(omap4_l3_init);
|
|
|
|