|
@@ -63,7 +63,7 @@ static int __init omap3_l3_init(void)
|
|
|
|
|
|
WARN(IS_ERR(pdev), "could not build omap_device for %s\n", oh_name);
|
|
|
|
|
|
- return PTR_RET(pdev);
|
|
|
+ return PTR_ERR_OR_ZERO(pdev);
|
|
|
}
|
|
|
omap_postcore_initcall(omap3_l3_init);
|
|
|
|
|
@@ -333,6 +333,6 @@ static int __init omap_gpmc_init(void)
|
|
|
pdev = omap_device_build("omap-gpmc", -1, oh, NULL, 0);
|
|
|
WARN(IS_ERR(pdev), "could not build omap_device for %s\n", oh_name);
|
|
|
|
|
|
- return PTR_RET(pdev);
|
|
|
+ return PTR_ERR_OR_ZERO(pdev);
|
|
|
}
|
|
|
omap_postcore_initcall(omap_gpmc_init);
|