From f2222a41db55f89bfafad03bd04ffdfb317b2edb Mon Sep 17 00:00:00 2001 From: Vaibhav Hiremath Date: Sat, 13 Feb 2016 02:04:11 +0530 Subject: [PATCH] greybus: arche-apb-ctrl: Set default state value to OFF Explicitly set default apb->state value to ARCHE_PLATFORM_STATE_OFF in probe() fn. Testing Done: Tested on EVT1.2 and DB3.5 platform Signed-off-by: Vaibhav Hiremath Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/arche-apb-ctrl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/staging/greybus/arche-apb-ctrl.c b/drivers/staging/greybus/arche-apb-ctrl.c index 9b7d61fc9267..1d3c112e974a 100644 --- a/drivers/staging/greybus/arche-apb-ctrl.c +++ b/drivers/staging/greybus/arche-apb-ctrl.c @@ -236,6 +236,9 @@ int arche_apb_ctrl_probe(struct platform_device *pdev) return ret; } + /* Initially set APB to OFF state */ + apb->state = ARCHE_PLATFORM_STATE_OFF; + ret = apb_ctrl_coldboot_seq(pdev, apb); if (ret) { dev_err(dev, "failed to set init state of control signal %d\n", -- 2.39.5