]> git.baikalelectronics.ru Git - kernel.git/commit
spi: uniphier: Fix a bug that doesn't point to private data correctly
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Wed, 22 Dec 2021 04:48:12 +0000 (13:48 +0900)
committerMark Brown <broonie@kernel.org>
Wed, 26 Jan 2022 12:58:20 +0000 (12:58 +0000)
commit8226702fb60dc74fe6e72fecd9a4284b3f878770
treeb39963532f6b79bbe4dad051848c46a90f81e69f
parent8a64c6c676647893024ecc6655581265232d046e
spi: uniphier: Fix a bug that doesn't point to private data correctly

In uniphier_spi_remove(), there is a wrong code to get private data from
the platform device, so the driver can't be removed properly.

The driver should get spi_master from the platform device and retrieve
the private data from it.

Cc: <stable@vger.kernel.org>
Fixes: 5a5039274251 ("spi: add SPI controller driver for UniPhier SoC")
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Link: https://lore.kernel.org/r/1640148492-32178-1-git-send-email-hayashi.kunihiko@socionext.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-uniphier.c