update can driver for phytium D2000 Soc

fix the problem for setting bitrate on phytium D2000 Soc

Signed-off-by: Chen Siyu <chensiyu1321@phytium.com.cn>
Signed-off-by: Jianping Liu <frankjpliu@tencent.com>
This commit is contained in:
Chen Siyu 2023-08-03 14:31:43 +08:00 committed by Jianping Liu
parent 0cdc4fd1f6
commit 6c6b6ecd88
1 changed files with 1 additions and 3 deletions

View File

@ -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;