diff --git a/drivers/net/can/phytium/phytium_can_platform.c b/drivers/net/can/phytium/phytium_can_platform.c index e2822382ccaef00ffcb45b5eaf90026413c1fb10..a25571d264b8a982deea37b64afec5993dd275d3 100644 --- a/drivers/net/can/phytium/phytium_can_platform.c +++ b/drivers/net/can/phytium/phytium_can_platform.c @@ -80,7 +80,7 @@ static int phytium_can_plat_probe(struct platform_device *pdev) const struct phytium_can_devtype *devtype = &phytium_can_data; u32 tx_fifo_depth; int ret; - const char *str = "canfd"; + const char *str = "can"; ret = fwnode_property_read_u32(dev_fwnode(&pdev->dev), "tx-fifo-depth", &tx_fifo_depth); if (ret) @@ -126,8 +126,6 @@ static int phytium_can_plat_probe(struct platform_device *pdev) "mode-select", &str); if (!(strcmp(str, "canfd"))) devtype = &phytium_canfd_data; - else - devtype = &phytium_can_data; } cdev->tx_fifo_depth = tx_fifo_depth;