diff --git a/sys/dev/drm2/drm_dp_iic_helper.c b/sys/dev/drm2/drm_dp_iic_helper.c index 71319e3..f367cb4 100644 --- a/sys/dev/drm2/drm_dp_iic_helper.c +++ b/sys/dev/drm2/drm_dp_iic_helper.c @@ -220,14 +222,11 @@ static int iic_dp_aux_detach(device_t idev) { struct iic_dp_aux_data *aux_data; - device_t port; aux_data = device_get_softc(idev); - port = aux_data->port; bus_generic_detach(idev); - if (port != NULL) - device_delete_child(idev, port); + device_delete_children(idev); return (0); }