]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/iommu/exynos-iommu.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next
[karo-tx-linux.git] / drivers / iommu / exynos-iommu.c
index 28372b85d8da5576db75403bc88f9a1437564bfa..dc14fec4ede123b0af6564f641d81dcfcb958b25 100644 (file)
@@ -684,7 +684,6 @@ static const struct of_device_id sysmmu_of_match[] __initconst = {
 static struct platform_driver exynos_sysmmu_driver __refdata = {
        .probe  = exynos_sysmmu_probe,
        .driver = {
-               .owner          = THIS_MODULE,
                .name           = "exynos-sysmmu",
                .of_match_table = sysmmu_of_match,
        }
@@ -1187,8 +1186,15 @@ static const struct iommu_ops exynos_iommu_ops = {
 
 static int __init exynos_iommu_init(void)
 {
+       struct device_node *np;
        int ret;
 
+       np = of_find_matching_node(NULL, sysmmu_of_match);
+       if (!np)
+               return 0;
+
+       of_node_put(np);
+
        lv2table_kmem_cache = kmem_cache_create("exynos-iommu-lv2table",
                                LV2TABLE_SIZE, LV2TABLE_SIZE, 0, NULL);
        if (!lv2table_kmem_cache) {