diff options
author | Dave Airlie <airlied@redhat.com> | 2014-06-04 10:02:28 +0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-06-05 03:54:29 +0400 |
commit | 4f71d0cb76339a10fd445b0b281acc45c71b6271 (patch) | |
tree | 9badd446ee865db48ebebe77ed8f4e3b3ca089aa /drivers/gpu/drm/tegra/dpaux.c | |
parent | 885ae1c55ae46ee1064bc7cb99dc45ddd8bd0328 (diff) | |
download | linux-4f71d0cb76339a10fd445b0b281acc45c71b6271.tar.xz |
drm/dp: add a hw mutex around the transfer functions. (v2)
This should avoid races between connector probing and HPD
irqs in the future, currently mode_config.mutex blocks this
possibility.
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/dpaux.c')
-rw-r--r-- | drivers/gpu/drm/tegra/dpaux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/tegra/dpaux.c b/drivers/gpu/drm/tegra/dpaux.c index 005c19bd92df..2b725ba7facc 100644 --- a/drivers/gpu/drm/tegra/dpaux.c +++ b/drivers/gpu/drm/tegra/dpaux.c @@ -332,7 +332,7 @@ static int tegra_dpaux_probe(struct platform_device *pdev) dpaux->aux.transfer = tegra_dpaux_transfer; dpaux->aux.dev = &pdev->dev; - err = drm_dp_aux_register_i2c_bus(&dpaux->aux); + err = drm_dp_aux_register(&dpaux->aux); if (err < 0) return err; @@ -355,7 +355,7 @@ static int tegra_dpaux_remove(struct platform_device *pdev) { struct tegra_dpaux *dpaux = platform_get_drvdata(pdev); - drm_dp_aux_unregister_i2c_bus(&dpaux->aux); + drm_dp_aux_unregister(&dpaux->aux); mutex_lock(&dpaux_lock); list_del(&dpaux->list); |