mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-12 06:01:58 +00:00
spi: fsl-lpspi: Fix problematic dev_set_drvdata call
The original code already set controller as drvdata: platform_set_drvdata(pdev, controller); But commit944c01a889("spi: lpspi: enable runtime pm for lpspi") added dev_set_drvdata(&pdev->dev, fsl_lpspi); so fsl_lpspi_remove() will get wrong pointer by platform_get_drvdata(). Fixes:944c01a889("spi: lpspi: enable runtime pm for lpspi") Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
9d8371e287
commit
6599be346d
1 changed files with 8 additions and 3 deletions
Loading…
Add table
Add a link
Reference in a new issue