Skip to contentSkip to conversation

video: fbdev: don't print error message on platform_get_irq() failure

PATCH Applied Tang Bin 3 participants 3 messages Apr 6, 2020 – Apr 7, 2020

Subsystems (3)
lore
Share & tools
lore

Tang Bin

author
#0 lore raw

PATCH 1/1 video: fbdev: don't print error message on platform_get_irq() failure

The platform_get_irq() can print error message,so remove the redundant dev_err() here.

---
 drivers/video/fbdev/atmel_lcdfb.c | 1 -
 1 file changed, 1 deletion(-)
drivers/video/fbdev/atmel_lcdfb.c +0 -1
index d567f5d56..1e2521925 100644
@@ -1114,7 +1114,6 @@ static int __init atmel_lcdfb_probe(struct platform_device *pdev)
 
 	sinfo->irq_base = platform_get_irq(pdev, 0);
 	if (sinfo->irq_base < 0) {
-		dev_err(dev, "unable to get irq\n");
 		ret = sinfo->irq_base;
 		goto stop_clk;
 	}
Signature · 1 line
2.20.1.windows.1
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Tang Bin

The platform_get_irq() can print error message,so remove the redundant dev_err() here.

Quoted 21 lines
---
  drivers/video/fbdev/atmel_lcdfb.c | 1 -
  1 file changed, 1 deletion(-)
drivers/video/fbdev/atmel_lcdfb.c +0 -2
index d567f5d56..1e2521925 100644
@@ -1114,7 +1114,6 @@ static int __init atmel_lcdfb_probe(struct platform_device *pdev)
 
         sinfo->irq_base = platform_get_irq(pdev, 0);
         if (sinfo->irq_base < 0) {
-               dev_err(dev, "unable to get irq\n");
                 ret = sinfo->irq_base;
                 goto stop_clk;
         }
--

2.20.1.windows.1

Signature · 1 line
Nicolas Ferre
Applied
#2 lore raw
In reply to Tang Bin

Hi Tang Bin

Quoted 13 lines · Tang Bin

The platform_get_irq() can print error message,so remove the redundant dev_err() here.

---
 drivers/video/fbdev/atmel_lcdfb.c | 1 -
 1 file changed, 1 deletion(-)
drivers/video/fbdev/atmel_lcdfb.c +0 -0
index d567f5d56..1e2521925 100644

drivers/video/fbdev/atmel_lcdfb.c static int __init atmel_lcdfb_probe(struct platform_device *pdev) · line 1119

Quoted 7 lines
drivers/video/fbdev/atmel_lcdfb.c +0 -1
@@ -1114,7 +1114,6 @@ static int __init atmel_lcdfb_probe(struct platform_device *pdev)
 
 	sinfo->irq_base = platform_get_irq(pdev, 0);
 	if (sinfo->irq_base < 0) {
-		dev_err(dev, "unable to get irq\n");
 		ret = sinfo->irq_base;
 		goto stop_clk;
 	}

Thanks, applied to drm-misc-next. The fix will appear in kernel 5.8

Sam