mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
drm/rockchip: Fix of_device_is_available check for iommu
I think we want to fallback to non-iommu buffer if iommu is disabled in dts. Check for iommu->parent is meanless here. Signed-off-by: Andy Yan <andy.yan@rock-chips.com> Change-Id: I78ce028a9c1215f1e8f956916f775f07b30e67be
This commit is contained in:
@@ -462,7 +462,7 @@ static int rockchip_drm_platform_of_probe(struct device *dev)
|
||||
}
|
||||
|
||||
iommu = of_parse_phandle(port->parent, "iommus", 0);
|
||||
if (!iommu || !of_device_is_available(iommu->parent)) {
|
||||
if (!iommu || !of_device_is_available(iommu)) {
|
||||
DRM_DEV_DEBUG(dev,
|
||||
"no iommu attached for %pOF, using non-iommu buffers\n",
|
||||
port->parent);
|
||||
|
||||
Reference in New Issue
Block a user