[U-Boot] [PATCH v2 1/8] net: mscc: Move ocelot_switch to mscc_switch folder.

Horatiu Vultur horatiu.vultur at microchip.com
Wed Jan 30 12:29:34 UTC 2019


Move file ocelot_switch to mscc_switch to prepare to add
new net drivers for other MSCC SoCs.

Signed-off-by: Horatiu Vultur <horatiu.vultur at microchip.com>
---
 MAINTAINERS                                    | 2 +-
 drivers/net/Makefile                           | 2 +-
 drivers/net/mscc_eswitch/Makefile              | 2 ++
 drivers/net/{ => mscc_eswitch}/ocelot_switch.c | 0
 4 files changed, 4 insertions(+), 2 deletions(-)
 create mode 100644 drivers/net/mscc_eswitch/Makefile
 rename drivers/net/{ => mscc_eswitch}/ocelot_switch.c (100%)

diff --git a/MAINTAINERS b/MAINTAINERS
index 1cb092e..edbb4ad 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -539,7 +539,7 @@ F:	drivers/gpio/mscc_sgpio.c
 F:	drivers/spi/mscc_bb_spi.c
 F:	include/configs/vcoreiii.h
 F:	drivers/pinctrl/mscc/
-F:	drivers/net/ocelot_switch.c
+F:	drivers/net/mscc_eswitch/
 
 MIPS JZ4780
 M:	Ezequiel Garcia <ezequiel at collabora.com>
diff --git a/drivers/net/Makefile b/drivers/net/Makefile
index e38c164..3ab7f26 100644
--- a/drivers/net/Makefile
+++ b/drivers/net/Makefile
@@ -75,4 +75,4 @@ obj-$(CONFIG_FSL_PFE) += pfe_eth/
 obj-$(CONFIG_SNI_AVE) += sni_ave.o
 obj-y += ti/
 obj-$(CONFIG_MEDIATEK_ETH) += mtk_eth.o
-obj-$(CONFIG_MSCC_OCELOT_SWITCH) += ocelot_switch.o
+obj-$(CONFIG_MSCC_OCELOT_SWITCH) += mscc_eswitch/
diff --git a/drivers/net/mscc_eswitch/Makefile b/drivers/net/mscc_eswitch/Makefile
new file mode 100644
index 0000000..32f411d
--- /dev/null
+++ b/drivers/net/mscc_eswitch/Makefile
@@ -0,0 +1,2 @@
+
+obj-$(CONFIG_MSCC_OCELOT_SWITCH) += ocelot_switch.o
diff --git a/drivers/net/ocelot_switch.c b/drivers/net/mscc_eswitch/ocelot_switch.c
similarity index 100%
rename from drivers/net/ocelot_switch.c
rename to drivers/net/mscc_eswitch/ocelot_switch.c
-- 
2.7.4



More information about the U-Boot mailing list