summaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorDuan Jiong <duanj.fnst@cn.fujitsu.com>2014-04-11 13:41:54 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2014-04-11 13:53:42 +0200
commit5896f8fe491891f551bdc6574bbc4a07c054c30b (patch)
treed55d79de98c090362e56e7fdbe66ec0dea07eda3 /drivers/s390
parent83d8e2527641b0710834bceeae5a681ffa759e1e (diff)
downloadblackbird-op-linux-5896f8fe491891f551bdc6574bbc4a07c054c30b.tar.gz
blackbird-op-linux-5896f8fe491891f551bdc6574bbc4a07c054c30b.zip
s390/sclp_cmd: replace PTR_RET with PTR_ERR_OR_ZERO
PTR_RET is deprecated. Do not recommend its usage anymore. Use PTR_ERR_OR_ZERO instead. Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/char/sclp_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/char/sclp_cmd.c b/drivers/s390/char/sclp_cmd.c
index 6e8f90f84e49..6e14999f9e8f 100644
--- a/drivers/s390/char/sclp_cmd.c
+++ b/drivers/s390/char/sclp_cmd.c
@@ -515,7 +515,7 @@ static int __init sclp_detect_standby_memory(void)
if (rc)
goto out;
sclp_pdev = platform_device_register_simple("sclp_mem", -1, NULL, 0);
- rc = PTR_RET(sclp_pdev);
+ rc = PTR_ERR_OR_ZERO(sclp_pdev);
if (rc)
goto out_driver;
sclp_add_standby_memory();
OpenPOWER on IntegriCloud