diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-07-15 12:13:32 +0200 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2013-07-16 08:36:00 +0200 |
commit | dac30a9843f8a6007e9d25cad2b5735679041397 (patch) | |
tree | 402bfeed65b13cc1bead421b58a442ae82fa0924 /drivers/rtc/rtc-isl12022.c | |
parent | mm/oom_kill: remove weird use of ERR_PTR()/PTR_ERR(). (diff) | |
download | linux-dac30a9843f8a6007e9d25cad2b5735679041397.tar.xz linux-dac30a9843f8a6007e9d25cad2b5735679041397.zip |
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-isl12022.c')
-rw-r--r-- | drivers/rtc/rtc-isl12022.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-isl12022.c b/drivers/rtc/rtc-isl12022.c index 5dbdc4405718..03b891129428 100644 --- a/drivers/rtc/rtc-isl12022.c +++ b/drivers/rtc/rtc-isl12022.c @@ -268,7 +268,7 @@ static int isl12022_probe(struct i2c_client *client, isl12022->rtc = devm_rtc_device_register(&client->dev, isl12022_driver.driver.name, &isl12022_rtc_ops, THIS_MODULE); - return PTR_RET(isl12022->rtc); + return PTR_ERR_OR_ZERO(isl12022->rtc); } static const struct i2c_device_id isl12022_id[] = { |