|
@@ -1857,11 +1857,10 @@ static int serial_imx_probe_dt(struct imx_port *sport,
|
|
struct platform_device *pdev)
|
|
struct platform_device *pdev)
|
|
{
|
|
{
|
|
struct device_node *np = pdev->dev.of_node;
|
|
struct device_node *np = pdev->dev.of_node;
|
|
- const struct of_device_id *of_id =
|
|
|
|
- of_match_device(imx_uart_dt_ids, &pdev->dev);
|
|
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
- if (!np)
|
|
|
|
|
|
+ sport->devdata = of_device_get_match_data(&pdev->dev);
|
|
|
|
+ if (!sport->devdata)
|
|
/* no device tree device */
|
|
/* no device tree device */
|
|
return 1;
|
|
return 1;
|
|
|
|
|
|
@@ -1878,8 +1877,6 @@ static int serial_imx_probe_dt(struct imx_port *sport,
|
|
if (of_get_property(np, "fsl,dte-mode", NULL))
|
|
if (of_get_property(np, "fsl,dte-mode", NULL))
|
|
sport->dte_mode = 1;
|
|
sport->dte_mode = 1;
|
|
|
|
|
|
- sport->devdata = of_id->data;
|
|
|
|
-
|
|
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
#else
|
|
#else
|