]> git.ipfire.org Git - thirdparty/linux.git/commit
net: dsa: fix warning same module names
authorAnders Roxell <anders.roxell@linaro.org>
Thu, 13 Jun 2019 11:35:03 +0000 (13:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Jun 2019 02:28:54 +0000 (19:28 -0700)
commitf0c03ee0ec664e07e0ec1ead7091cbe53f0f321c
tree1a71faf2c98e643ea3e6d6c30ac8011ca7ca42cd
parentce950f1050cece5e406a5cde723c69bba60e1b26
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 realtek-smi instead of realtek.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/Makefile
drivers/net/dsa/realtek-smi-core.c [moved from drivers/net/dsa/realtek-smi.c with 99% similarity]
drivers/net/dsa/realtek-smi-core.h [moved from drivers/net/dsa/realtek-smi.h with 100% similarity]
drivers/net/dsa/rtl8366.c
drivers/net/dsa/rtl8366rb.c