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:
@@ -5371,12 +5371,12 @@ static const struct dev_pm_ops tegra210_adsp_pm_ops = {
|
||||
};
|
||||
|
||||
#if defined(NV_PLATFORM_DRIVER_STRUCT_REMOVE_RETURNS_VOID) /* Linux v6.11 */
|
||||
static inline void tegra210_adsp_audio_remove_wrapper(struct platform_device *pdev)
|
||||
static void tegra210_adsp_audio_remove_wrapper(struct platform_device *pdev)
|
||||
{
|
||||
tegra210_adsp_audio_remove(pdev);
|
||||
}
|
||||
#else
|
||||
static inline int tegra210_adsp_audio_remove_wrapper(struct platform_device *pdev)
|
||||
static int tegra210_adsp_audio_remove_wrapper(struct platform_device *pdev)
|
||||
{
|
||||
return tegra210_adsp_audio_remove(pdev);
|
||||
}
|
||||
|
||||
@@ -253,12 +253,12 @@ static int tegra_virt_machine_driver_remove(struct platform_device *pdev)
|
||||
}
|
||||
|
||||
#if defined(NV_PLATFORM_DRIVER_STRUCT_REMOVE_RETURNS_VOID) /* Linux v6.11 */
|
||||
static inline void tegra_virt_machine_driver_remove_wrapper(struct platform_device *pdev)
|
||||
static void tegra_virt_machine_driver_remove_wrapper(struct platform_device *pdev)
|
||||
{
|
||||
tegra_virt_machine_driver_remove(pdev);
|
||||
}
|
||||
#else
|
||||
static inline int tegra_virt_machine_driver_remove_wrapper(struct platform_device *pdev)
|
||||
static int tegra_virt_machine_driver_remove_wrapper(struct platform_device *pdev)
|
||||
{
|
||||
return tegra_virt_machine_driver_remove(pdev);
|
||||
}
|
||||
|
||||
@@ -800,12 +800,12 @@ static const struct dev_pm_ops tegra186_arad_pm_ops = {
|
||||
};
|
||||
|
||||
#if defined(NV_PLATFORM_DRIVER_STRUCT_REMOVE_RETURNS_VOID) /* Linux v6.11 */
|
||||
static inline void tegra186_arad_platform_remove_wrapper(struct platform_device *pdev)
|
||||
static void tegra186_arad_platform_remove_wrapper(struct platform_device *pdev)
|
||||
{
|
||||
tegra186_arad_platform_remove(pdev);
|
||||
}
|
||||
#else
|
||||
static inline int tegra186_arad_platform_remove_wrapper(struct platform_device *pdev)
|
||||
static int tegra186_arad_platform_remove_wrapper(struct platform_device *pdev)
|
||||
{
|
||||
return tegra186_arad_platform_remove(pdev);
|
||||
}
|
||||
|
||||
@@ -4818,12 +4818,12 @@ static const struct dev_pm_ops tegra210_adsp_pm_ops = {
|
||||
};
|
||||
|
||||
#if defined(NV_PLATFORM_DRIVER_STRUCT_REMOVE_RETURNS_VOID) /* Linux v6.11 */
|
||||
static inline void tegra210_adsp_audio_remove_wrapper(struct platform_device *pdev)
|
||||
static void tegra210_adsp_audio_remove_wrapper(struct platform_device *pdev)
|
||||
{
|
||||
tegra210_adsp_audio_remove(pdev);
|
||||
}
|
||||
#else
|
||||
static inline int tegra210_adsp_audio_remove_wrapper(struct platform_device *pdev)
|
||||
static int tegra210_adsp_audio_remove_wrapper(struct platform_device *pdev)
|
||||
{
|
||||
return tegra210_adsp_audio_remove(pdev);
|
||||
}
|
||||
|
||||
@@ -561,12 +561,12 @@ static const struct dev_pm_ops tegra210_afc_pm_ops = {
|
||||
};
|
||||
|
||||
#if defined(NV_PLATFORM_DRIVER_STRUCT_REMOVE_RETURNS_VOID) /* Linux v6.11 */
|
||||
static inline void tegra210_afc_platform_remove_wrapper(struct platform_device *pdev)
|
||||
static void tegra210_afc_platform_remove_wrapper(struct platform_device *pdev)
|
||||
{
|
||||
tegra210_afc_platform_remove(pdev);
|
||||
}
|
||||
#else
|
||||
static inline int tegra210_afc_platform_remove_wrapper(struct platform_device *pdev)
|
||||
static int tegra210_afc_platform_remove_wrapper(struct platform_device *pdev)
|
||||
{
|
||||
return tegra210_afc_platform_remove(pdev);
|
||||
}
|
||||
|
||||
@@ -347,12 +347,12 @@ static const struct dev_pm_ops tegra210_iqc_pm_ops = {
|
||||
};
|
||||
|
||||
#if defined(NV_PLATFORM_DRIVER_STRUCT_REMOVE_RETURNS_VOID) /* Linux v6.11 */
|
||||
static inline void tegra210_iqc_platform_remove_wrapper(struct platform_device *pdev)
|
||||
static void tegra210_iqc_platform_remove_wrapper(struct platform_device *pdev)
|
||||
{
|
||||
tegra210_iqc_platform_remove(pdev);
|
||||
}
|
||||
#else
|
||||
static inline int tegra210_iqc_platform_remove_wrapper(struct platform_device *pdev)
|
||||
static int tegra210_iqc_platform_remove_wrapper(struct platform_device *pdev)
|
||||
{
|
||||
return tegra210_iqc_platform_remove(pdev);
|
||||
}
|
||||
|
||||
@@ -503,12 +503,12 @@ static const struct of_device_id tegra_mixer_control_of_match[] = {
|
||||
MODULE_DEVICE_TABLE(of, tegra_mixer_control_of_match);
|
||||
|
||||
#if defined(NV_PLATFORM_DRIVER_STRUCT_REMOVE_RETURNS_VOID) /* Linux v6.11 */
|
||||
static inline void tegra_mixer_control_remove_wrapper(struct platform_device *pdev)
|
||||
static void tegra_mixer_control_remove_wrapper(struct platform_device *pdev)
|
||||
{
|
||||
tegra_mixer_control_remove(pdev);
|
||||
}
|
||||
#else
|
||||
static inline int tegra_mixer_control_remove_wrapper(struct platform_device *pdev)
|
||||
static int tegra_mixer_control_remove_wrapper(struct platform_device *pdev)
|
||||
{
|
||||
return tegra_mixer_control_remove(pdev);
|
||||
}
|
||||
|
||||
@@ -818,12 +818,12 @@ static int t234_safety_audio_remove(struct platform_device *pdev)
|
||||
}
|
||||
|
||||
#if defined(NV_PLATFORM_DRIVER_STRUCT_REMOVE_RETURNS_VOID) /* Linux v6.11 */
|
||||
static inline void t234_safety_audio_remove_wrapper(struct platform_device *pdev)
|
||||
static void t234_safety_audio_remove_wrapper(struct platform_device *pdev)
|
||||
{
|
||||
t234_safety_audio_remove(pdev);
|
||||
}
|
||||
#else
|
||||
static inline int t234_safety_audio_remove_wrapper(struct platform_device *pdev)
|
||||
static int t234_safety_audio_remove_wrapper(struct platform_device *pdev)
|
||||
{
|
||||
return t234_safety_audio_remove(pdev);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user