]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
greybus: arche-apb-ctrl: Set default state value to OFF
authorVaibhav Hiremath <vaibhav.hiremath@linaro.org>
Fri, 12 Feb 2016 20:34:11 +0000 (02:04 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Mon, 15 Feb 2016 21:18:40 +0000 (13:18 -0800)
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 <vaibhav.hiremath@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/arche-apb-ctrl.c

index 9b7d61fc9267901de26805a1534e513bef68d0fa..1d3c112e974a22f48b5046d182e8d6929cd8074c 100644 (file)
@@ -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",