phy: mvebu-cp110: checking for NULL instead of IS_ERR()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 8 Sep 2017 10:31:37 +0000 (13:31 +0300)
committerKishon Vijay Abraham I <kishon@ti.com>
Tue, 26 Sep 2017 11:32:49 +0000 (17:02 +0530)
commitc1c7acac0998ffcc9cd81e016a7d1b58b1afbb51
tree7969e591a3890162246a8738225bfaca90de4cb1
parent17fb745d4acfe52f9ebb1ba2b10f2fcd796fb5ce
phy: mvebu-cp110: checking for NULL instead of IS_ERR()

devm_ioremap_resource() never returns NULL, it only returns error
pointers so this test needs to be changed.

Fixes: d0438bd6aa09 ("phy: add the mvebu cp110 comphy driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/marvell/phy-mvebu-cp110-comphy.c