drivers/rtc: Replace PTR_RET with PTR_ERR_OR_ZERO
PTR_RET is now deprecated. Use PTR_ERR_OR_ZERO instead. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:

committed by
Rusty Russell

parent
6b4f2b56a4
commit
dac30a9843
@@ -175,7 +175,7 @@ static int m48t35_probe(struct platform_device *pdev)
|
||||
|
||||
priv->rtc = devm_rtc_device_register(&pdev->dev, "m48t35",
|
||||
&m48t35_ops, THIS_MODULE);
|
||||
return PTR_RET(priv->rtc);
|
||||
return PTR_ERR_OR_ZERO(priv->rtc);
|
||||
}
|
||||
|
||||
static struct platform_driver m48t35_platform_driver = {
|
||||
|
Reference in New Issue
Block a user