serial: tegra: assume CONFIG_OF
Tegra only supports, and always enables, device tree. Remove all ifdefs
for DT support from the driver.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
diff --git a/drivers/tty/serial/serial-tegra.c b/drivers/tty/serial/serial-tegra.c
index 4f5e629..372de8a 100644
--- a/drivers/tty/serial/serial-tegra.c
+++ b/drivers/tty/serial/serial-tegra.c
@@ -1269,8 +1269,7 @@
const struct tegra_uart_chip_data *cdata;
const struct of_device_id *match;
- match = of_match_device(of_match_ptr(tegra_uart_of_match),
- &pdev->dev);
+ match = of_match_device(tegra_uart_of_match, &pdev->dev);
if (!match) {
dev_err(&pdev->dev, "Error: No device match found\n");
return -ENODEV;
@@ -1361,7 +1360,7 @@
.remove = tegra_uart_remove,
.driver = {
.name = "serial-tegra",
- .of_match_table = of_match_ptr(tegra_uart_of_match),
+ .of_match_table = tegra_uart_of_match,
.pm = &tegra_uart_pm_ops,
},
};