]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
drm/bridge: analogix_dp: remove unused analogix_dp_remove
authorLucas Stach <l.stach@pengutronix.de>
Wed, 19 Jun 2024 18:21:51 +0000 (20:21 +0200)
committerRobert Foss <rfoss@kernel.org>
Thu, 27 Jun 2024 09:52:04 +0000 (11:52 +0200)
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
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
drivers/gpu/drm/exynos/exynos_dp.c
drivers/gpu/drm/rockchip/analogix_dp-rockchip.c
include/drm/bridge/analogix_dp.h

index 4453d1672686dae59ed82b7f94cf60dff86cf33c..7a5e25b6aa3aaa805c401055353a1611246d830d 100644 (file)
@@ -1805,11 +1805,6 @@ void analogix_dp_unbind(struct analogix_dp_device *dp)
 }
 EXPORT_SYMBOL_GPL(analogix_dp_unbind);
 
-void analogix_dp_remove(struct analogix_dp_device *dp)
-{
-}
-EXPORT_SYMBOL_GPL(analogix_dp_remove);
-
 int analogix_dp_start_crc(struct drm_connector *connector)
 {
        struct analogix_dp_device *dp = to_dp(connector);
index 30c8750187ada3c8c701e619a43e618cf77bd3e6..097f8c4617dea7a9d9c67b29e00ebeb1cdabf864 100644 (file)
@@ -251,10 +251,7 @@ out:
 
 static void exynos_dp_remove(struct platform_device *pdev)
 {
-       struct exynos_dp_device *dp = platform_get_drvdata(pdev);
-
        component_del(&pdev->dev, &exynos_dp_ops);
-       analogix_dp_remove(dp->adp);
 }
 
 static int exynos_dp_suspend(struct device *dev)
index 8214265f1497bf8bda44f3b30de41af1ffc808bf..362c7951ca4a918198e86d2d9b4a7c45bf1f1565 100644 (file)
@@ -414,21 +414,14 @@ static int rockchip_dp_probe(struct platform_device *pdev)
 
        ret = component_add(dev, &rockchip_dp_component_ops);
        if (ret)
-               goto err_dp_remove;
+               return ret;
 
        return 0;
-
-err_dp_remove:
-       analogix_dp_remove(dp->adp);
-       return ret;
 }
 
 static void rockchip_dp_remove(struct platform_device *pdev)
 {
-       struct rockchip_dp_device *dp = platform_get_drvdata(pdev);
-
        component_del(&pdev->dev, &rockchip_dp_component_ops);
-       analogix_dp_remove(dp->adp);
 }
 
 static int rockchip_dp_suspend(struct device *dev)
index 8709b6a74c0f871c9599c8370b8085bde4587b42..6002c5666031fad327313a662f777a007dfca4eb 100644 (file)
@@ -44,7 +44,6 @@ struct analogix_dp_device *
 analogix_dp_probe(struct device *dev, struct analogix_dp_plat_data *plat_data);
 int analogix_dp_bind(struct analogix_dp_device *dp, struct drm_device *drm_dev);
 void analogix_dp_unbind(struct analogix_dp_device *dp);
-void analogix_dp_remove(struct analogix_dp_device *dp);
 
 int analogix_dp_start_crc(struct drm_connector *connector);
 int analogix_dp_stop_crc(struct drm_connector *connector);