drm/i915/sdvo: restore i2c adapter config on intel_sdvo_init() failures
authorJani Nikula <jani.nikula@intel.com>
Mon, 22 Oct 2012 13:12:18 +0000 (16:12 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 26 Oct 2012 08:26:43 +0000 (10:26 +0200)
commitfbfcc4f3a0cf8bbde87646b74241faa8e37426bf
treeb447731b2f5fdcfbcab1d17727e054fbc6029bb8
parent6cb1612a7dc4c3d5ed86dba5dd21bb48a5c395af
drm/i915/sdvo: restore i2c adapter config on intel_sdvo_init() failures

SDVOB may be multiplexed with HDMIB. If it's not SDVOB, the same i2c
adapter may be used for HDMIB, with the adjusted config (i.e. with GPIO
bit-banging instead of gmbus). Restore i2c adapter config before error
return from intel_sdvo_init(), letting HDMIB enjoy the joys of gmbus.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_sdvo.c