[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190612081147.1372-1-anders.roxell@linaro.org>
Date: Wed, 12 Jun 2019 10:11:47 +0200
From: Anders Roxell <anders.roxell@...aro.org>
To: davem@...emloft.net
Cc: andrew@...n.ch, vivien.didelot@...il.com, f.fainelli@...il.com,
linus.walleij@...aro.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org,
Anders Roxell <anders.roxell@...aro.org>
Subject: [PATCH v2] drivers: net: dsa: fix warning same module names
When building with CONFIG_NET_DSA_REALTEK_SMI and CONFIG_REALTEK_PHY
enabled as loadable modules, we see the following warning:
warning: same module names found:
drivers/net/phy/realtek.ko
drivers/net/dsa/realtek.ko
Rework so the driver name is rtl8366 instead of realtek.
Signed-off-by: Anders Roxell <anders.roxell@...aro.org>
---
drivers/net/dsa/Makefile | 4 ++--
drivers/net/dsa/{rtl8366.c => rtl8366-common.c} | 0
2 files changed, 2 insertions(+), 2 deletions(-)
rename drivers/net/dsa/{rtl8366.c => rtl8366-common.c} (100%)
diff --git a/drivers/net/dsa/Makefile b/drivers/net/dsa/Makefile
index fefb6aaa82ba..d7a282eb2ff9 100644
--- a/drivers/net/dsa/Makefile
+++ b/drivers/net/dsa/Makefile
@@ -9,8 +9,8 @@ obj-$(CONFIG_NET_DSA_LANTIQ_GSWIP) += lantiq_gswip.o
obj-$(CONFIG_NET_DSA_MT7530) += mt7530.o
obj-$(CONFIG_NET_DSA_MV88E6060) += mv88e6060.o
obj-$(CONFIG_NET_DSA_QCA8K) += qca8k.o
-obj-$(CONFIG_NET_DSA_REALTEK_SMI) += realtek.o
-realtek-objs := realtek-smi.o rtl8366.o rtl8366rb.o
+obj-$(CONFIG_NET_DSA_REALTEK_SMI) += rtl8366.o
+rtl8366-objs := realtek-smi.o rtl8366-common.o rtl8366rb.o
obj-$(CONFIG_NET_DSA_SMSC_LAN9303) += lan9303-core.o
obj-$(CONFIG_NET_DSA_SMSC_LAN9303_I2C) += lan9303_i2c.o
obj-$(CONFIG_NET_DSA_SMSC_LAN9303_MDIO) += lan9303_mdio.o
diff --git a/drivers/net/dsa/rtl8366.c b/drivers/net/dsa/rtl8366-common.c
similarity index 100%
rename from drivers/net/dsa/rtl8366.c
rename to drivers/net/dsa/rtl8366-common.c
--
2.20.1
Powered by blists - more mailing lists