]> git.baikalelectronics.ru Git - kernel.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)
commitac1d393dd1e1a6b2f83a5514a4a591818417b194
tree1a71faf2c98e643ea3e6d6c30ac8011ca7ca42cd
parent6f2b2a058760a97863bcda5a33983d33f624c681
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 [new file with mode: 0644]
drivers/net/dsa/realtek-smi-core.h [new file with mode: 0644]
drivers/net/dsa/realtek-smi.c [deleted file]
drivers/net/dsa/realtek-smi.h [deleted file]
drivers/net/dsa/rtl8366.c
drivers/net/dsa/rtl8366rb.c