Skip to content

Commit fcd30c9

Browse files
luizlucadavem330
authored andcommitted
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/[email protected]/ Signed-off-by: Luiz Angelo Daros de Luca <[email protected]> Reviewed-by: Alvin Šipraga <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Acked-by: Arınç ÜNAL <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 6f2d04c commit fcd30c9

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

drivers/net/dsa/realtek/realtek-mdio.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,6 @@ static const struct of_device_id realtek_mdio_of_match[] = {
267267
#endif
268268
#if IS_ENABLED(CONFIG_NET_DSA_REALTEK_RTL8365MB)
269269
{ .compatible = "realtek,rtl8365mb", .data = &rtl8365mb_variant, },
270-
{ .compatible = "realtek,rtl8367s", .data = &rtl8365mb_variant, },
271270
#endif
272271
{ /* sentinel */ },
273272
};

drivers/net/dsa/realtek/realtek-smi.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -551,10 +551,6 @@ static const struct of_device_id realtek_smi_of_match[] = {
551551
.compatible = "realtek,rtl8365mb",
552552
.data = &rtl8365mb_variant,
553553
},
554-
{
555-
.compatible = "realtek,rtl8367s",
556-
.data = &rtl8365mb_variant,
557-
},
558554
#endif
559555
{ /* sentinel */ },
560556
};

0 commit comments

Comments
 (0)