Commit e664e8c0 authored by Stephen Warren's avatar Stephen Warren Committed by Joerg Roedel

iommu/tegra: assume CONFIG_OF in gart driver

Tegra only supports, and always enables, device tree. Remove all ifdefs
for DT support from the driver.
Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
Signed-off-by: default avatarJoerg Roedel <joro@8bytes.org>
parent a3b7256d
...@@ -430,13 +430,11 @@ const struct dev_pm_ops tegra_gart_pm_ops = { ...@@ -430,13 +430,11 @@ const struct dev_pm_ops tegra_gart_pm_ops = {
.resume = tegra_gart_resume, .resume = tegra_gart_resume,
}; };
#ifdef CONFIG_OF
static struct of_device_id tegra_gart_of_match[] = { static struct of_device_id tegra_gart_of_match[] = {
{ .compatible = "nvidia,tegra20-gart", }, { .compatible = "nvidia,tegra20-gart", },
{ }, { },
}; };
MODULE_DEVICE_TABLE(of, tegra_gart_of_match); MODULE_DEVICE_TABLE(of, tegra_gart_of_match);
#endif
static struct platform_driver tegra_gart_driver = { static struct platform_driver tegra_gart_driver = {
.probe = tegra_gart_probe, .probe = tegra_gart_probe,
...@@ -445,7 +443,7 @@ static struct platform_driver tegra_gart_driver = { ...@@ -445,7 +443,7 @@ static struct platform_driver tegra_gart_driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.name = "tegra-gart", .name = "tegra-gart",
.pm = &tegra_gart_pm_ops, .pm = &tegra_gart_pm_ops,
.of_match_table = of_match_ptr(tegra_gart_of_match), .of_match_table = tegra_gart_of_match,
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment