mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-20 04:19:41 +00:00
greybus: arche-platform: arche_pdata is guaranteed to be valid
arche_pdata is guaranteed to be valid in arche_platform_remove(). Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Vaibhav Hiremath <vaibhav.hiremath@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
fc41c2da44
commit
73658f2a28
@ -179,10 +179,7 @@ static int arche_platform_remove(struct platform_device *pdev)
|
||||
struct arche_platform_drvdata *arche_pdata = platform_get_drvdata(pdev);
|
||||
|
||||
device_for_each_child(&pdev->dev, NULL, arche_remove_child);
|
||||
|
||||
if (arche_pdata)
|
||||
arche_platform_cleanup(arche_pdata);
|
||||
|
||||
arche_platform_cleanup(arche_pdata);
|
||||
platform_set_drvdata(pdev, NULL);
|
||||
unexport_gpios(arche_pdata);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user