bus: omap-ocp2scp: Fix error handling in omap_ocp2scp_probe
authorKishon Vijay Abraham I <kishon@ti.com>
Tue, 11 Jul 2017 10:16:38 +0000 (15:46 +0530)
committerTony Lindgren <tony@atomide.com>
Wed, 12 Jul 2017 09:25:41 +0000 (02:25 -0700)
commit672647afabf5bafd3d855724ee5829e2a9cbd65b
tree02560fd2ee8afe589959e83d144cc07a10c8132e
parentff570a01b1bd15cf8a87c9ea774fc9c52ea07f15
bus: omap-ocp2scp: Fix error handling in omap_ocp2scp_probe

The error handling code in omap_ocp2scp_probe fails to invoke
pm_runtime_disable and fails to initialize return value in
certain cases. Fix it here.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/bus/omap-ocp2scp.c