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> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6f2d04ccae
commit
fcd30c96af
@ -267,7 +267,6 @@ static const struct of_device_id realtek_mdio_of_match[] = {
|
||||
#endif
|
||||
#if IS_ENABLED(CONFIG_NET_DSA_REALTEK_RTL8365MB)
|
||||
{ .compatible = "realtek,rtl8365mb", .data = &rtl8365mb_variant, },
|
||||
{ .compatible = "realtek,rtl8367s", .data = &rtl8365mb_variant, },
|
||||
#endif
|
||||
{ /* sentinel */ },
|
||||
};
|
||||
|
@ -551,10 +551,6 @@ static const struct of_device_id realtek_smi_of_match[] = {
|
||||
.compatible = "realtek,rtl8365mb",
|
||||
.data = &rtl8365mb_variant,
|
||||
},
|
||||
{
|
||||
.compatible = "realtek,rtl8367s",
|
||||
.data = &rtl8365mb_variant,
|
||||
},
|
||||
#endif
|
||||
{ /* sentinel */ },
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user