We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 618bf2b commit a6a65f9Copy full SHA for a6a65f9
drivers/tty/serial/serial-tegra.c
@@ -1568,14 +1568,12 @@ static int tegra_uart_probe(struct platform_device *pdev)
1568
struct resource *resource;
1569
int ret;
1570
const struct tegra_uart_chip_data *cdata;
1571
- const struct of_device_id *match;
1572
1573
- match = of_match_device(tegra_uart_of_match, &pdev->dev);
1574
- if (!match) {
+ cdata = of_device_get_match_data(&pdev->dev);
+ if (!cdata) {
1575
dev_err(&pdev->dev, "Error: No device match found\n");
1576
return -ENODEV;
1577
}
1578
- cdata = match->data;
1579
1580
tup = devm_kzalloc(&pdev->dev, sizeof(*tup), GFP_KERNEL);
1581
if (!tup) {
0 commit comments