aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/serial-tegra.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/serial/serial-tegra.c')
-rw-r--r--drivers/tty/serial/serial-tegra.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/tty/serial/serial-tegra.c b/drivers/tty/serial/serial-tegra.c
index 4f5e62989a2b..372de8ade76a 100644
--- a/drivers/tty/serial/serial-tegra.c
+++ b/drivers/tty/serial/serial-tegra.c
@@ -1269,8 +1269,7 @@ static int tegra_uart_probe(struct platform_device *pdev)
1269 const struct tegra_uart_chip_data *cdata; 1269 const struct tegra_uart_chip_data *cdata;
1270 const struct of_device_id *match; 1270 const struct of_device_id *match;
1271 1271
1272 match = of_match_device(of_match_ptr(tegra_uart_of_match), 1272 match = of_match_device(tegra_uart_of_match, &pdev->dev);
1273 &pdev->dev);
1274 if (!match) { 1273 if (!match) {
1275 dev_err(&pdev->dev, "Error: No device match found\n"); 1274 dev_err(&pdev->dev, "Error: No device match found\n");
1276 return -ENODEV; 1275 return -ENODEV;
@@ -1361,7 +1360,7 @@ static struct platform_driver tegra_uart_platform_driver = {
1361 .remove = tegra_uart_remove, 1360 .remove = tegra_uart_remove,
1362 .driver = { 1361 .driver = {
1363 .name = "serial-tegra", 1362 .name = "serial-tegra",
1364 .of_match_table = of_match_ptr(tegra_uart_of_match), 1363 .of_match_table = tegra_uart_of_match,
1365 .pm = &tegra_uart_pm_ops, 1364 .pm = &tegra_uart_pm_ops,
1366 }, 1365 },
1367}; 1366};