Skip to contentSkip to conversation

media: raspberrypi: rp1-cfe: Remove (explicitly) unused header

PATCH In review Andy Shevchenko 2 participants 3 messages Mar 31, 2025 – May 2, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: raspberrypi: rp1-cfe: Remove (explicitly) unused header

The fwnode.h is not supposed to be used by the drivers as it has the definitions for the core parts for different device property provider implementations. Drop it.

Note, that fwnode API for drivers is provided in property.h which is included here.

---
 drivers/media/platform/raspberrypi/rp1-cfe/cfe.c | 1 -
 1 file changed, 1 deletion(-)
drivers/media/platform/raspberrypi/rp1-cfe/cfe.c +0 -1
index 69a5f23e7954..fcadb2143c88 100644
@@ -12,7 +12,6 @@
 #include <linux/device.h>
 #include <linux/dma-mapping.h>
 #include <linux/err.h>
-#include <linux/fwnode.h>
 #include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/io.h>
Signature · 1 line
2.47.2
maintainer Reviewed-by on v1 1/1
#1 lore raw

Hi,

Quoted 17 lines · Andy Shevchenko

The fwnode.h is not supposed to be used by the drivers as it has the definitions for the core parts for different device property provider implementations. Drop it.

Note, that fwnode API for drivers is provided in property.h which is included here.

---
  drivers/media/platform/raspberrypi/rp1-cfe/cfe.c | 1 -
  1 file changed, 1 deletion(-)
drivers/media/platform/raspberrypi/rp1-cfe/cfe.c +0 -0
index 69a5f23e7954..fcadb2143c88 100644

drivers/media/platform/raspberrypi/rp1-cfe/cfe.c line 17

Quoted 7 lines
drivers/media/platform/raspberrypi/rp1-cfe/cfe.c +0 -1
@@ -12,7 +12,6 @@
  #include <linux/device.h>
  #include <linux/dma-mapping.h>
  #include <linux/err.h>
-#include <linux/fwnode.h>
  #include <linux/init.h>
  #include <linux/interrupt.h>
  #include <linux/io.h>

Tomi

#2 lore raw
In reply to Andy Shevchenko
Quoted 6 lines · Andy Shevchenko

The fwnode.h is not supposed to be used by the drivers as it has the definitions for the core parts for different device property provider implementations. Drop it.

Note, that fwnode API for drivers is provided in property.h which is included here.

Any comments? Can it be applied?

Signature · 2 lines
With Best Regards,
Andy Shevchenko