spi: aurix: Fix build for Linux v5.18

The Aurix SPI driver fails to build with Linux v5.18 because the return
type of the remove function is not correct. This was previously fixed
for the Linux v5.19 build, but the change in the upstream kernel
actually occurred in Linux v5.18.

Bug 3820317

Change-Id: I2588fe33af6877c1c5c61a2a1d9195248066bbd1
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2792537
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Jon Hunter
2022-10-14 10:44:23 +01:00
committed by mobile promotions
parent fc8041ed6a
commit d28e28c6fe

View File

@@ -370,7 +370,7 @@ static int aurix_tegra_start_kthread(struct device *dev)
/* /*
* remove, shutdown, suspend, resume functions * remove, shutdown, suspend, resume functions
*/ */
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 19, 0) #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 18, 0)
static int aurix_tegra_spi_remove(struct spi_device *spi) static int aurix_tegra_spi_remove(struct spi_device *spi)
{ {
return aurix_tegra_stop_kthread(&spi->dev); return aurix_tegra_stop_kthread(&spi->dev);