aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-m48t35.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-07-15 06:13:32 -0400
committerRusty Russell <rusty@rustcorp.com.au>2013-07-16 02:36:00 -0400
commitdac30a9843f8a6007e9d25cad2b5735679041397 (patch)
tree402bfeed65b13cc1bead421b58a442ae82fa0924 /drivers/rtc/rtc-m48t35.c
parent6b4f2b56a48c8ea9775bd2b29681725d4474367a (diff)
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>
Diffstat (limited to 'drivers/rtc/rtc-m48t35.c')
-rw-r--r--drivers/rtc/rtc-m48t35.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-m48t35.c b/drivers/rtc/rtc-m48t35.c
index 23c3779a5f2b..411adb3f86a1 100644
--- a/drivers/rtc/rtc-m48t35.c
+++ b/drivers/rtc/rtc-m48t35.c
@@ -175,7 +175,7 @@ static int m48t35_probe(struct platform_device *pdev)
175 175
176 priv->rtc = devm_rtc_device_register(&pdev->dev, "m48t35", 176 priv->rtc = devm_rtc_device_register(&pdev->dev, "m48t35",
177 &m48t35_ops, THIS_MODULE); 177 &m48t35_ops, THIS_MODULE);
178 return PTR_RET(priv->rtc); 178 return PTR_ERR_OR_ZERO(priv->rtc);
179} 179}
180 180
181static struct platform_driver m48t35_platform_driver = { 181static struct platform_driver m48t35_platform_driver = {