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
This commit is contained in:
Lucas Stach 2024-06-19 20:21:51 +02:00 committed by Robert Foss
parent f37952339c
commit e7514df007
No known key found for this signature in database
GPG Key ID: 3EFD900F76D1D784
4 changed files with 1 additions and 17 deletions

View File

@ -1805,11 +1805,6 @@ void analogix_dp_unbind(struct analogix_dp_device *dp)
} }
EXPORT_SYMBOL_GPL(analogix_dp_unbind); 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) int analogix_dp_start_crc(struct drm_connector *connector)
{ {
struct analogix_dp_device *dp = to_dp(connector); struct analogix_dp_device *dp = to_dp(connector);

View File

@ -251,10 +251,7 @@ out:
static void exynos_dp_remove(struct platform_device *pdev) 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); component_del(&pdev->dev, &exynos_dp_ops);
analogix_dp_remove(dp->adp);
} }
static int exynos_dp_suspend(struct device *dev) static int exynos_dp_suspend(struct device *dev)

View File

@ -414,21 +414,14 @@ static int rockchip_dp_probe(struct platform_device *pdev)
ret = component_add(dev, &rockchip_dp_component_ops); ret = component_add(dev, &rockchip_dp_component_ops);
if (ret) if (ret)
goto err_dp_remove; return ret;
return 0; return 0;
err_dp_remove:
analogix_dp_remove(dp->adp);
return ret;
} }
static void rockchip_dp_remove(struct platform_device *pdev) 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); component_del(&pdev->dev, &rockchip_dp_component_ops);
analogix_dp_remove(dp->adp);
} }
static int rockchip_dp_suspend(struct device *dev) static int rockchip_dp_suspend(struct device *dev)

View File

@ -44,7 +44,6 @@ struct analogix_dp_device *
analogix_dp_probe(struct device *dev, struct analogix_dp_plat_data *plat_data); 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); 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_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_start_crc(struct drm_connector *connector);
int analogix_dp_stop_crc(struct drm_connector *connector); int analogix_dp_stop_crc(struct drm_connector *connector);