firmware: arm_scpi: add missing of_node_put after calling of_parse_phandle
authorPeter Chen <peter.chen@nxp.com>
Mon, 4 Jul 2016 06:55:57 +0000 (14:55 +0800)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 8 Aug 2016 13:31:09 +0000 (14:31 +0100)
commitb079bd555f6060cd6b435a1eb58ec3b8d255ebd0
tree53f5ebe25f2647ea20b84a271f133117f45580e5
parent557e37c05f28bad113d65d584699e8d8f29f70a3
firmware: arm_scpi: add missing of_node_put after calling of_parse_phandle

of_node_put needs to be called when the device node which is got
from of_parse_phandle has finished using it.

Besides, of_address_to_resource always returns -EINVAL for error, delete
the assignment for ret.

Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scpi.c