From d28e28c6febf87484986459ddec6dfa5548bf3cb Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Fri, 14 Oct 2022 10:44:23 +0100 Subject: [PATCH] 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 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2792537 Reviewed-by: Laxman Dewangan GVS: Gerrit_Virtual_Submit --- drivers/spi/spi-aurix-tegra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-aurix-tegra.c b/drivers/spi/spi-aurix-tegra.c index 6e101547..331f8862 100644 --- a/drivers/spi/spi-aurix-tegra.c +++ b/drivers/spi/spi-aurix-tegra.c @@ -370,7 +370,7 @@ static int aurix_tegra_start_kthread(struct device *dev) /* * 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) { return aurix_tegra_stop_kthread(&spi->dev);