From: Vaibhav Hiremath Date: Fri, 12 Feb 2016 20:34:11 +0000 (+0530) Subject: greybus: arche-apb-ctrl: Set default state value to OFF X-Git-Tag: v4.9-rc1~119^2~378^2~21^2~701 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f2222a41db55f89bfafad03bd04ffdfb317b2edb;p=karo-tx-linux.git 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 --- 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",