]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/iommu/tegra-gart.c
Merge tag 'for-linus' of git://github.com/realmz/blackfin-linux
[karo-tx-linux.git] / drivers / iommu / tegra-gart.c
index 8219f1d596ee8d339562f6d4122b47f20545ab46..108c0e9c24d97bfba39f701de0c14323ad5e3569 100644 (file)
@@ -279,7 +279,7 @@ static size_t gart_iommu_unmap(struct iommu_domain *domain, unsigned long iova,
 }
 
 static phys_addr_t gart_iommu_iova_to_phys(struct iommu_domain *domain,
-                                          unsigned long iova)
+                                          dma_addr_t iova)
 {
        struct gart_device *gart = domain->priv;
        unsigned long pte;
@@ -295,7 +295,8 @@ static phys_addr_t gart_iommu_iova_to_phys(struct iommu_domain *domain,
 
        pa = (pte & GART_PAGE_MASK);
        if (!pfn_valid(__phys_to_pfn(pa))) {
-               dev_err(gart->dev, "No entry for %08lx:%08x\n", iova, pa);
+               dev_err(gart->dev, "No entry for %08llx:%08x\n",
+                        (unsigned long long)iova, pa);
                gart_dump_table(gart);
                return -EINVAL;
        }
@@ -430,13 +431,11 @@ const struct dev_pm_ops tegra_gart_pm_ops = {
        .resume         = tegra_gart_resume,
 };
 
-#ifdef CONFIG_OF
 static struct of_device_id tegra_gart_of_match[] = {
        { .compatible = "nvidia,tegra20-gart", },
        { },
 };
 MODULE_DEVICE_TABLE(of, tegra_gart_of_match);
-#endif
 
 static struct platform_driver tegra_gart_driver = {
        .probe          = tegra_gart_probe,
@@ -445,7 +444,7 @@ static struct platform_driver tegra_gart_driver = {
                .owner  = THIS_MODULE,
                .name   = "tegra-gart",
                .pm     = &tegra_gart_pm_ops,
-               .of_match_table = of_match_ptr(tegra_gart_of_match),
+               .of_match_table = tegra_gart_of_match,
        },
 };