mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02: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:
parent
778ce099dc
commit
186788893a
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user