mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
drivers: Drop inline from driver remove wrapper
The driver remove function is a function pointer and therefore, it does not make sense to define the function as an 'inline'. Update the coccinelle script and drivers to remove the inline statement. Bug 4749580 Change-Id: Ia03691b75c4edffe609f27468b911a92a5ddbd68 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3233980 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
@@ -567,12 +567,12 @@ static const struct of_device_id pwm_tegra_tach_of_match[] = {
|
||||
MODULE_DEVICE_TABLE(of, pwm_tegra_tach_of_match);
|
||||
|
||||
#if defined(NV_PLATFORM_DRIVER_STRUCT_REMOVE_RETURNS_VOID) /* Linux v6.11 */
|
||||
static inline void pwm_tegra_tach_remove_wrapper(struct platform_device *pdev)
|
||||
static void pwm_tegra_tach_remove_wrapper(struct platform_device *pdev)
|
||||
{
|
||||
pwm_tegra_tach_remove(pdev);
|
||||
}
|
||||
#else
|
||||
static inline int pwm_tegra_tach_remove_wrapper(struct platform_device *pdev)
|
||||
static int pwm_tegra_tach_remove_wrapper(struct platform_device *pdev)
|
||||
{
|
||||
return pwm_tegra_tach_remove(pdev);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user