[PATCH net-next 3/4] net: lan966x: add new compatible microchip,lan9668-switch

From: Michael Walle
Date: Thu Jun 30 2022 - 10:19:15 EST


The old generic compatible string is deprecated. Add the new specific
one.

Signed-off-by: Michael Walle <michael@xxxxxxxx>
---
drivers/net/ethernet/microchip/lan966x/lan966x_main.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/microchip/lan966x/lan966x_main.c b/drivers/net/ethernet/microchip/lan966x/lan966x_main.c
index d611b52d3a07..adc5474041a6 100644
--- a/drivers/net/ethernet/microchip/lan966x/lan966x_main.c
+++ b/drivers/net/ethernet/microchip/lan966x/lan966x_main.c
@@ -35,6 +35,7 @@ static const struct lan966x_info lan9668_info = {
};

static const struct of_device_id lan966x_match[] = {
+ { .compatible = "microchip,lan9668-switch", .data = &lan9668_info },
{ .compatible = "microchip,lan966x-switch", .data = &lan9668_info },
{ }
};
--
2.30.2