Skip to content

Commit 45eb5c4

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 dea5f9a commit 45eb5c4

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
@@ -1073,10 +1073,7 @@ static void dcp_comp_unbind(struct device *dev, struct device *main, void *data)
10731073
if (dcp->piodma) {
10741074
iommu_detach_device(dcp->iommu_dom, &dcp->piodma->dev);
10751075
iommu_domain_free(dcp->iommu_dom);
1076-
/* TODO: the piodma platform device has to be destroyed but
1077-
* doing so leads to all kind of breakage.
1078-
*/
1079-
// of_platform_device_destroy(&dcp->piodma->dev, NULL);
1076+
of_platform_device_destroy(&dcp->piodma->dev, NULL);
10801077
dcp->piodma = NULL;
10811078
}
10821079

0 commit comments

Comments
 (0)