iommu/rockchip: fix old/new iommu driver conflict

Change-Id: I22fcf6be63aebe76417a470975c6c10bbc3ed92a
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
This commit is contained in:
Mark Yao
2016-07-11 14:50:58 +08:00
parent 4712c74b71
commit ec801e81f6

View File

@@ -1245,8 +1245,15 @@ static struct platform_driver rk_iommu_driver = {
static int __init rockchip_iommu_init_driver(void)
{
struct device_node *np;
int ret;
np = of_find_matching_node(NULL, iommu_dt_ids);
if (!np) {
pr_err("Failed to find legacy iommu devices\n");
return -ENODEV;
}
lv2table_kmem_cache = kmem_cache_create("rk-iommu-lv2table",
LV2TABLE_SIZE, LV2TABLE_SIZE,
0, NULL);