]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drivers: net: xgene: Don't use "proxy" headers
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 24 Feb 2025 12:00:37 +0000 (14:00 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 26 Feb 2025 02:27:58 +0000 (18:27 -0800)
Update header inclusions to follow IWYU (Include What You Use)
principle.

In this case replace *gpio.h, which are subject to remove by the GPIOLIB
subsystem, with the respective headers that are being used by the driver.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20250224120037.3801609-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c

index 86607b79c09f70248b5dda78d214b25a60eb6294..cc3b1631c9053925ae097d4b44f2fe3f02e7d163 100644 (file)
@@ -6,8 +6,14 @@
  *         Keyur Chudgar <kchudgar@apm.com>
  */
 
-#include <linux/of_gpio.h>
-#include <linux/gpio.h>
+#include <linux/acpi.h>
+#include <linux/clk.h>
+#include <linux/err.h>
+#include <linux/gpio/consumer.h>
+#include <linux/io.h>
+#include <linux/types.h>
+#include <linux/workqueue.h>
+
 #include "xgene_enet_main.h"
 #include "xgene_enet_hw.h"
 #include "xgene_enet_xgmac.h"