pwm: Drop owner from pwm_ops for Linux 6.7

The member "owner" is removed from the pwm_ops from
Linux 6.7 onwards with below change.
***
commit 384461abcab6602abc06c2dfb8fb99beeeaa12b0
Author: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

    pwm: Manage owner assignment implicitly for drivers
***

Remove this member.

Bug 4346767

Change-Id: I7893c29641d15ac7ef56d29625a2df696872c659
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3019999
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Laxman Dewangan
2023-11-21 15:30:00 +00:00
committed by mobile promotions
parent b17be80108
commit 9de2a9da7f
4 changed files with 9 additions and 0 deletions

View File

@@ -89,6 +89,9 @@ subdir-ccflags-y += -DNV_ASOC_XXX_DROP
# drm_debugfs_remove_files has root argument
subdir-ccflags-y += -DNV_DRM_DEBUGFS_REMOVE_HAS_ROOT_ARGS
# pwm ops has dropped the .owner member
subdir-ccflags-y += -DNV_PWM_OPS_HAS_NO_OWNER
endif
ifeq ($(CONFIG_TEGRA_VIRTUALIZATION),y)

View File

@@ -130,7 +130,9 @@ static const struct pwm_ops cdi_pwm_ops = {
.enable = cdi_pwm_enable,
.disable = cdi_pwm_disable,
#endif
#if !defined(NV_PWM_OPS_HAS_NO_OWNER)
.owner = THIS_MODULE,
#endif
};
static int cdi_pwm_probe(struct platform_device *pdev)

View File

@@ -130,7 +130,9 @@ static const struct pwm_ops isc_pwm_ops = {
.enable = isc_pwm_enable,
.disable = isc_pwm_disable,
#endif
#if !defined(NV_PWM_OPS_HAS_NO_OWNER)
.owner = THIS_MODULE,
#endif
};
static int isc_pwm_probe(struct platform_device *pdev)

View File

@@ -316,7 +316,9 @@ static const struct pwm_ops pwm_tegra_tach_ops = {
.apply = tegra_pwm_apply,
#endif
.capture = pwm_tegra_tacho_capture,
#if !defined(NV_PWM_OPS_HAS_NO_OWNER)
.owner = THIS_MODULE,
#endif
};
static void pwm_tegra_tach_read_platform_data(struct pwm_tegra_tach *ptt)