|
@@ -1015,8 +1015,15 @@ static struct platform_driver rk_iommu_driver = {
|
|
|
|
|
|
static int __init rk_iommu_init(void)
|
|
static int __init rk_iommu_init(void)
|
|
{
|
|
{
|
|
|
|
+ struct device_node *np;
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
|
|
+ np = of_find_matching_node(NULL, rk_iommu_dt_ids);
|
|
|
|
+ if (!np)
|
|
|
|
+ return 0;
|
|
|
|
+
|
|
|
|
+ of_node_put(np);
|
|
|
|
+
|
|
ret = bus_set_iommu(&platform_bus_type, &rk_iommu_ops);
|
|
ret = bus_set_iommu(&platform_bus_type, &rk_iommu_ops);
|
|
if (ret)
|
|
if (ret)
|
|
return ret;
|
|
return ret;
|