Skip to content

Commit

Permalink
serial: tegra: assume CONFIG_OF
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen Warren authored and Greg Kroah-Hartman committed Feb 15, 2013
1 parent b0de59b commit c3e1bec
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/tty/serial/serial-tegra.c
Original file line number Diff line number Diff line change
Expand Up @@ -1269,8 +1269,7 @@ static int tegra_uart_probe(struct platform_device *pdev)
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;
Expand Down Expand Up @@ -1361,7 +1360,7 @@ static struct platform_driver tegra_uart_platform_driver = {
.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,
},
};
Expand Down

0 comments on commit c3e1bec

Please sign in to comment.