static void decon_unbind(struct device *dev, struct device *master, void *data) { struct decon_context *ctx = dev_get_drvdata(dev); decon_disable(ctx->crtc); /* detach this sub driver from iommu mapping if supported. */ drm_iommu_detach_device(ctx->drm_dev, ctx->dev); }
void exynos_drm_unregister_dma(struct drm_device *drm, struct device *dev) { if (IS_ENABLED(CONFIG_EXYNOS_IOMMU)) drm_iommu_detach_device(drm, dev); }