diff options
-rw-r--r-- | sys/dev/pci/drm/drm_dp_mst_topology.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/drm_dp_mst_topology.c b/sys/dev/pci/drm/drm_dp_mst_topology.c index 309dc08caae..7171b3a9416 100644 --- a/sys/dev/pci/drm/drm_dp_mst_topology.c +++ b/sys/dev/pci/drm/drm_dp_mst_topology.c @@ -5424,7 +5424,9 @@ static const struct i2c_algorithm drm_dp_mst_i2c_algo = { static int drm_dp_mst_register_i2c_bus(struct drm_dp_mst_port *port) { struct drm_dp_aux *aux = &port->aux; +#ifdef __linux__ struct device *parent_dev = port->mgr->dev->dev; +#endif aux->ddc.algo = &drm_dp_mst_i2c_algo; aux->ddc.algo_data = aux; |