Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: dsa: realtek: remove realtek,rtl8367s string

There is no need to add new compatible strings for each new supported
chip version. The compatible string is used only to select the subdriver
(rtl8365mb.c or rtl8366rb.c). Once in the subdriver, it will detect the
chip model by itself, ignoring which compatible string was used.

Link: https://lore.kernel.org/netdev/20220414014055.m4wbmr7tdz6hsa3m@bang-olufsen.dk/
Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Reviewed-by: Alvin Šipraga <alsi@bang-olufsen.dk>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Arınç ÜNAL <arinc.unal@arinc9.com>
Link: https://lore.kernel.org/r/20220418233558.13541-2-luizluca@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Luiz Angelo Daros de Luca and committed by
Jakub Kicinski
b107a639 b3917191

-5
-1
drivers/net/dsa/realtek/realtek-mdio.c
··· 267 267 #endif 268 268 #if IS_ENABLED(CONFIG_NET_DSA_REALTEK_RTL8365MB) 269 269 { .compatible = "realtek,rtl8365mb", .data = &rtl8365mb_variant, }, 270 - { .compatible = "realtek,rtl8367s", .data = &rtl8365mb_variant, }, 271 270 #endif 272 271 { /* sentinel */ }, 273 272 };
-4
drivers/net/dsa/realtek/realtek-smi.c
··· 551 551 .compatible = "realtek,rtl8365mb", 552 552 .data = &rtl8365mb_variant, 553 553 }, 554 - { 555 - .compatible = "realtek,rtl8367s", 556 - .data = &rtl8365mb_variant, 557 - }, 558 554 #endif 559 555 { /* sentinel */ }, 560 556 };