Skip to content

Commit d078f16

Browse files
committed
drm/apple: Add device link between display-subsystem and each dcp*
Fixes resume/suspend order between both devices. Signed-off-by: Janne Grunau <j@jannau.net>
1 parent dccf286 commit d078f16

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpu/drm/apple/apple_drv.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,8 @@ static int apple_drm_init_dcp(struct device *dev)
402402
if (!dcp[num_dcp])
403403
continue;
404404

405+
device_link_add(dev, &dcp[num_dcp]->dev, DL_FLAG_AUTOREMOVE_SUPPLIER);
406+
405407
ret = apple_probe_per_dcp(dev, &apple->drm, dcp[num_dcp],
406408
num_dcp, dcp_ext);
407409
if (ret)

0 commit comments

Comments
 (0)