diff mbox series

[v2,08/19] video: sunxi: Remove TV probe from DE2

Message ID 20210306195437.9740-9-jernej.skrabec@siol.net
State Accepted
Delegated to: Andre Przywara
Headers show
Series video: sunxi: rework DE2 driver | expand

Commit Message

Jernej Škrabec March 6, 2021, 7:54 p.m. UTC
TV driver was never fully implemented. Remove search for it from DE2
driver.

Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
---
 drivers/video/sunxi/sunxi_de2.c | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)

Comments

Andre Przywara March 7, 2021, 1:31 a.m. UTC | #1
On Sat,  6 Mar 2021 20:54:26 +0100
Jernej Skrabec <jernej.skrabec@siol.net> wrote:

> TV driver was never fully implemented. Remove search for it from DE2
> driver.

Correct, there is no driver in the tree which would match this string.

> Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>

Reviewed-by: Andre Przywara <andre.przywara@arm.com>

Cheers,
Andre

> ---
>  drivers/video/sunxi/sunxi_de2.c | 15 +--------------
>  1 file changed, 1 insertion(+), 14 deletions(-)
> 
> diff --git a/drivers/video/sunxi/sunxi_de2.c b/drivers/video/sunxi/sunxi_de2.c
> index a3e21aa5f13e..6b836a011944 100644
> --- a/drivers/video/sunxi/sunxi_de2.c
> +++ b/drivers/video/sunxi/sunxi_de2.c
> @@ -281,20 +281,7 @@ static int sunxi_de2_probe(struct udevice *dev)
>  
>  	debug("%s: hdmi display not found (ret=%d)\n", __func__, ret);
>  
> -	ret = uclass_find_device_by_name(UCLASS_DISPLAY,
> -					"sunxi_tve", &disp);
> -	if (ret) {
> -		debug("%s: tv not found (ret=%d)\n", __func__, ret);
> -		return ret;
> -	}
> -
> -	ret = sunxi_de2_init(dev, plat->base, VIDEO_BPP32, disp, 1, true);
> -	if (ret)
> -		return ret;
> -
> -	video_set_flush_dcache(dev, 1);
> -
> -	return 0;
> +	return -ENODEV;
>  }
>  
>  static int sunxi_de2_bind(struct udevice *dev)
diff mbox series

Patch

diff --git a/drivers/video/sunxi/sunxi_de2.c b/drivers/video/sunxi/sunxi_de2.c
index a3e21aa5f13e..6b836a011944 100644
--- a/drivers/video/sunxi/sunxi_de2.c
+++ b/drivers/video/sunxi/sunxi_de2.c
@@ -281,20 +281,7 @@  static int sunxi_de2_probe(struct udevice *dev)
 
 	debug("%s: hdmi display not found (ret=%d)\n", __func__, ret);
 
-	ret = uclass_find_device_by_name(UCLASS_DISPLAY,
-					"sunxi_tve", &disp);
-	if (ret) {
-		debug("%s: tv not found (ret=%d)\n", __func__, ret);
-		return ret;
-	}
-
-	ret = sunxi_de2_init(dev, plat->base, VIDEO_BPP32, disp, 1, true);
-	if (ret)
-		return ret;
-
-	video_set_flush_dcache(dev, 1);
-
-	return 0;
+	return -ENODEV;
 }
 
 static int sunxi_de2_bind(struct udevice *dev)