ACPI: VIOT: Remove (explicitly) unused header
Subsystems (2)
PATCH 1/1 ACPI: VIOT: 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/acpi/viot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/viot.c +1 -1
@@ -19,11 +19,11 @@#define pr_fmt (fmt) "ACPI: VIOT: " fmt#include <linux/acpi_viot.h> -#include <linux/fwnode.h> #include <linux/iommu.h> #include <linux/list.h> #include <linux/pci.h> #include <linux/platform_device.h> +#include <linux/property.h> struct viot_iommu {/* Node offset within the table */
Signature · 1 line
2.47.2
Quoted 6 lines · Andy Shevchenko
The
fwnode.his 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.hwhich is included here.
Any comments? Can it be applied?
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 8 lines · Andy Shevchenko
The
fwnode.his 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.hwhich is included here.Signed-off-by Andy Shevchenko <[email protected]>
Quoted 24 lines
--- drivers/acpi/viot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/acpi/viot.c +1
-1@@ -19,11 +19,11 @@#define pr_fmt (fmt) "ACPI: VIOT: " fmt#include <linux/acpi_viot.h> -#include <linux/fwnode.h> #include <linux/iommu.h> #include <linux/list.h> #include <linux/pci.h> #include <linux/platform_device.h> +#include <linux/property.h> struct viot_iommu {/* Node offset within the table */ Signature · 1 line
2.47.2
Quoted 32 lines · Jean-Philippe Brucker
Quoted 8 lines · Andy Shevchenko
The
fwnode.his 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.hwhich is included here.Signed-off-by Andy Shevchenko <[email protected]>Reviewed-by Jean-Philippe Brucker <[email protected]>Quoted 19 lines
--- drivers/acpi/viot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/acpi/viot.c +1
-1@@ -19,11 +19,11 @@#define pr_fmt (fmt) "ACPI: VIOT: " fmt#include <linux/acpi_viot.h> -#include <linux/fwnode.h> #include <linux/iommu.h> #include <linux/list.h> #include <linux/pci.h> #include <linux/platform_device.h> +#include <linux/property.h>
Quoted 3 lines
drivers/acpi/viot.c
Quoted 3 lines
drivers/acpi/viot.c +0
-1struct viot_iommu {/* Node offset within the table */ --
Applied as 6.16 material, thanks!