drm/i915: fix error path in intel_setup_gmbus()
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Tue, 9 Feb 2016 20:11:13 +0000 (21:11 +0100)
committerJani Nikula <jani.nikula@intel.com>
Wed, 10 Feb 2016 08:53:29 +0000 (10:53 +0200)
commit2417c8c03f508841b85bf61acc91836b7b0e2560
treef82e45689ab3edbd95e81b20be300dd397fb9efd
parent3e99a6b9561402909fdb3b0028764d42557e0103
drm/i915: fix error path in intel_setup_gmbus()

This fails to undo the setup for pin==0; moreover, something
interesting happens if the setup failed already at pin==0.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Fixes: f899fc64cda8 ("drm/i915: use GMBUS to manage i2c links")
Cc: stable@vger.kernel.org
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1455048677-19882-3-git-send-email-linux@rasmusvillemoes.dk
drivers/gpu/drm/i915/intel_i2c.c