Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/bridge: analogix_dp: remove unused analogix_dp_remove

Now that the clock is handled dynamically through
analogix_dp_resume/suspend and it isn't statically enabled in the
driver probe routine, there is no need for the remove function anymore.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Robert Foss <rfoss@kernel.org>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Robert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240619182200.3752465-5-l.stach@pengutronix.de

authored by

Lucas Stach and committed by
Robert Foss
e7514df0 f3795233

+1 -17
-5
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
··· 1805 1805 } 1806 1806 EXPORT_SYMBOL_GPL(analogix_dp_unbind); 1807 1807 1808 - void analogix_dp_remove(struct analogix_dp_device *dp) 1809 - { 1810 - } 1811 - EXPORT_SYMBOL_GPL(analogix_dp_remove); 1812 - 1813 1808 int analogix_dp_start_crc(struct drm_connector *connector) 1814 1809 { 1815 1810 struct analogix_dp_device *dp = to_dp(connector);
-3
drivers/gpu/drm/exynos/exynos_dp.c
··· 251 251 252 252 static void exynos_dp_remove(struct platform_device *pdev) 253 253 { 254 - struct exynos_dp_device *dp = platform_get_drvdata(pdev); 255 - 256 254 component_del(&pdev->dev, &exynos_dp_ops); 257 - analogix_dp_remove(dp->adp); 258 255 } 259 256 260 257 static int exynos_dp_suspend(struct device *dev)
+1 -8
drivers/gpu/drm/rockchip/analogix_dp-rockchip.c
··· 414 414 415 415 ret = component_add(dev, &rockchip_dp_component_ops); 416 416 if (ret) 417 - goto err_dp_remove; 417 + return ret; 418 418 419 419 return 0; 420 - 421 - err_dp_remove: 422 - analogix_dp_remove(dp->adp); 423 - return ret; 424 420 } 425 421 426 422 static void rockchip_dp_remove(struct platform_device *pdev) 427 423 { 428 - struct rockchip_dp_device *dp = platform_get_drvdata(pdev); 429 - 430 424 component_del(&pdev->dev, &rockchip_dp_component_ops); 431 - analogix_dp_remove(dp->adp); 432 425 } 433 426 434 427 static int rockchip_dp_suspend(struct device *dev)
-1
include/drm/bridge/analogix_dp.h
··· 44 44 analogix_dp_probe(struct device *dev, struct analogix_dp_plat_data *plat_data); 45 45 int analogix_dp_bind(struct analogix_dp_device *dp, struct drm_device *drm_dev); 46 46 void analogix_dp_unbind(struct analogix_dp_device *dp); 47 - void analogix_dp_remove(struct analogix_dp_device *dp); 48 47 49 48 int analogix_dp_start_crc(struct drm_connector *connector); 50 49 int analogix_dp_stop_crc(struct drm_connector *connector);