Skip to content

Commit 340f1de

Browse files
committed
Revert "drm: apple: HACK: Do not delete piodma platform device"
This reverts commit fa86f31. Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 815fc37 commit 340f1de

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

  • drivers/gpu/drm/apple

drivers/gpu/drm/apple/dcp.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,10 +1076,7 @@ static void dcp_comp_unbind(struct device *dev, struct device *main, void *data)
10761076
if (dcp->piodma) {
10771077
iommu_detach_device(dcp->iommu_dom, &dcp->piodma->dev);
10781078
iommu_domain_free(dcp->iommu_dom);
1079-
/* TODO: the piodma platform device has to be destroyed but
1080-
* doing so leads to all kind of breakage.
1081-
*/
1082-
// of_platform_device_destroy(&dcp->piodma->dev, NULL);
1079+
of_platform_device_destroy(&dcp->piodma->dev, NULL);
10831080
dcp->piodma = NULL;
10841081
}
10851082

0 commit comments

Comments
 (0)