phy: qcom-ufs: Don't return error if fail to get optional resource
authorAxel Lin <axel.lin@ingics.com>
Mon, 23 Mar 2015 04:08:18 +0000 (12:08 +0800)
committerKishon Vijay Abraham I <kishon@ti.com>
Fri, 3 Apr 2015 12:46:18 +0000 (18:16 +0530)
commit52ea796b9161b1b81242e6831d9e128ee207ad2d
tree13bbd70147bbbcd92a70fd790061d3e61a7e535b
parent358d6c87e73310c8e6564153cb556c0cd9e523fc
phy: qcom-ufs: Don't return error if fail to get optional resource

"dev_ref_clk_ctrl_mem" is optional resource, so don't return error if fail to
get the resource. Since it's an optional resource, don't emit error if
fail to get dev_ref_clk_ctrl_mem.

Also remove redundant test for res, it's done by devm_ioremap_resource().

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-qcom-ufs.c