Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 573f4145 authored by Stephen Warren's avatar Stephen Warren Committed by Joerg Roedel
Browse files

iommu/tegra: assume CONFIG_OF in SMMU 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 e664e8c0
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1267,13 +1267,11 @@ const struct dev_pm_ops tegra_smmu_pm_ops = {
	.resume		= tegra_smmu_resume,
};

#ifdef CONFIG_OF
static struct of_device_id tegra_smmu_of_match[] = {
	{ .compatible = "nvidia,tegra30-smmu", },
	{ },
};
MODULE_DEVICE_TABLE(of, tegra_smmu_of_match);
#endif

static struct platform_driver tegra_smmu_driver = {
	.probe		= tegra_smmu_probe,
@@ -1282,7 +1280,7 @@ static struct platform_driver tegra_smmu_driver = {
		.owner	= THIS_MODULE,
		.name	= "tegra-smmu",
		.pm	= &tegra_smmu_pm_ops,
		.of_match_table = of_match_ptr(tegra_smmu_of_match),
		.of_match_table = tegra_smmu_of_match,
	},
};