mirror of https://gitee.com/openkylin/linux.git
greybus: arche-platform: Rename cleanup fn to poweroff_seq
In sync with operational states, rename arche_platform_cleanup() fn to arche_platform_poweroff_seq() 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>
This commit is contained in:
parent
49e6e04bb4
commit
5993e2bfd8
|
@ -130,7 +130,7 @@ static int arche_platform_coldboot_seq(struct arche_platform_drvdata *arche_pdat
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void arche_platform_cleanup(struct arche_platform_drvdata *arche_pdata)
|
static void arche_platform_poweroff_seq(struct arche_platform_drvdata *arche_pdata)
|
||||||
{
|
{
|
||||||
clk_disable_unprepare(arche_pdata->svc_ref_clk);
|
clk_disable_unprepare(arche_pdata->svc_ref_clk);
|
||||||
/* As part of exit, put APB back in reset state */
|
/* As part of exit, put APB back in reset state */
|
||||||
|
@ -264,7 +264,7 @@ static int arche_platform_remove(struct platform_device *pdev)
|
||||||
|
|
||||||
cancel_delayed_work_sync(&arche_pdata->delayed_work);
|
cancel_delayed_work_sync(&arche_pdata->delayed_work);
|
||||||
device_for_each_child(&pdev->dev, NULL, arche_remove_child);
|
device_for_each_child(&pdev->dev, NULL, arche_remove_child);
|
||||||
arche_platform_cleanup(arche_pdata);
|
arche_platform_poweroff_seq(arche_pdata);
|
||||||
platform_set_drvdata(pdev, NULL);
|
platform_set_drvdata(pdev, NULL);
|
||||||
unexport_gpios(arche_pdata);
|
unexport_gpios(arche_pdata);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue