diff options
| author | Warner Losh <imp@FreeBSD.org> | 2021-12-10 00:04:45 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2021-12-10 00:04:45 +0000 |
| commit | c6df6f5322f7004c71216391e1c0b374d853704a (patch) | |
| tree | 76dc82f3e59048e11fc12a9f5985627e8f12b24d /sys/dev/drm2 | |
| parent | ab639f2398bf7efd4dfd38cd6527e22f6e781ae9 (diff) | |
Diffstat (limited to 'sys/dev/drm2')
| -rw-r--r-- | sys/dev/drm2/drm_dp_iic_helper.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/drm2/drm_dp_iic_helper.c b/sys/dev/drm2/drm_dp_iic_helper.c index 35318c11c388..c3f980a3342f 100644 --- a/sys/dev/drm2/drm_dp_iic_helper.c +++ b/sys/dev/drm2/drm_dp_iic_helper.c @@ -228,12 +228,12 @@ iic_dp_aux_add_bus(device_t dev, const char *name, int idx, error; static int dp_bus_counter; - mtx_lock(&Giant); + bus_topo_lock(); idx = atomic_fetchadd_int(&dp_bus_counter, 1); ibus = device_add_child(dev, "drm_iic_dp_aux", idx); if (ibus == NULL) { - mtx_unlock(&Giant); + bus_topo_unlock(); DRM_ERROR("drm_iic_dp_aux bus %d creation error\n", idx); return (-ENXIO); } @@ -241,7 +241,7 @@ iic_dp_aux_add_bus(device_t dev, const char *name, error = device_probe_and_attach(ibus); if (error != 0) { device_delete_child(dev, ibus); - mtx_unlock(&Giant); + bus_topo_unlock(); DRM_ERROR("drm_iic_dp_aux bus %d attach failed, %d\n", idx, error); return (-error); @@ -256,7 +256,7 @@ iic_dp_aux_add_bus(device_t dev, const char *name, *bus = ibus; *adapter = data->port; } - mtx_unlock(&Giant); + bus_topo_unlock(); return (-error); } |
