mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
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:
committed by
mobile promotions
parent
fc8041ed6a
commit
d28e28c6fe
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user