The parameter dev_priv is actually not used in macro PORT_ALPM_CTL
and PORT_ALPM_LFPS_CTL,so remove it to simplify the code.
Signed-off-by: He Lugang
---
drivers/gpu/drm/i915/display/intel_alpm.c | 4 ++--
drivers/gpu/drm/i915/display/intel_psr.c | 2 +-
drivers/gpu/drm/i915/display
The parameter dev_priv is actually not used in macro PORT_ALPM_CTL
and PORT_ALPM_LFPS_CTL,so remove it to simplify the code.
Reviewed-by: Jani Nikula
Signed-off-by: He Lugang
---
drivers/gpu/drm/i915/display/intel_alpm.c | 4 ++--
drivers/gpu/drm/i915/display/intel_psr.c | 2
Use devm_add_action_or_reset() to release resources in case of failure,
because the cleanup function will be automatically called.
Signed-off-by: He Lugang
---
drivers/gpu/drm/xe/xe_gt_freq.c | 2 +-
drivers/gpu/drm/xe/xe_gt_sysfs.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions
Use devm_add_action_or_reset() to release resources in case of failure,
because the cleanup function will be automatically called.
Signed-off-by: He Lugang
---
drivers/gpu/drm/xe/xe_gt_freq.c | 2 +-
drivers/gpu/drm/xe/xe_gt_sysfs.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions
Use devm_add_action_or_reset() to release resources in case of failure,
because the cleanup function will be automatically called.
Signed-off-by: He Lugang
---
drivers/gpu/drm/gud/gud_drv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/gud/gud_drv.c b
Use devm_add_action_or_reset() to release resources in case of failure,
because the cleanup function will be automatically called.
Signed-off-by: He Lugang
---
drivers/gpu/drm/i2c/tda9950.c | 12 +++-
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/drivers/gpu/drm/i2c
Use devm_add_action_or_reset() to release resources in case of failure,
because the cleanup function will be automatically called.
Reviewed-by: Rodrigo Vivi
Signed-off-by: He Lugang
---
v2:move devm_add_action_or_reset after sysfs_create_files to avoid removing
the sysfs files that hadn't
The parameter dev_priv is actually not used in macro PORT_ALPM_CTL
and PORT_ALPM_LFPS_CTL,so remove it to simplify the code.
Reviewed-by: Jani Nikula
Signed-off-by: He Lugang
---
drivers/gpu/drm/i915/display/intel_alpm.c | 4 ++--
drivers/gpu/drm/i915/display/intel_psr.c | 2
Use devm_add_action_or_reset() to release resources in case of failure,
because the cleanup function will be automatically called.
Reviewed-by: Dmitry Baryshkov
Signed-off-by: He Lugang
---
drivers/gpu/drm/i2c/tda9950.c | 12 +++-
1 file changed, 3 insertions(+), 9 deletions(-)
diff