mailbox/xgene-slimpro: Checking for IS_ERR instead of NULL
commit14d653af4e32b1ae2964e5b2847ef6be191fee64
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 25 Feb 2016 21:32:21 +0000 (26 00:32 +0300)
committerJassi Brar <jaswinder.singh@linaro.org>
Fri, 4 Mar 2016 07:02:20 +0000 (4 12:32 +0530)
tree6b64321abd4c29744d8da2371aacc0df8d4ae33e
parent9c384189f5407565141f1a950d8350e56d86b4dd
mailbox/xgene-slimpro: Checking for IS_ERR instead of NULL

devm_ioremap() returns NULL, it never returns an ERR_PTR.

Fixes: f700e84f417b ('mailbox: Add support for APM X-Gene platform mailbox driver')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/mailbox-xgene-slimpro.c