From: Guido Martínez Date: Tue, 17 Jun 2014 14:17:03 +0000 (-0300) Subject: drm/i2c: tda998x: move drm_i2c_encoder_destroy call X-Git-Tag: omap-for-v3.16/fixes-rc4~13^2~2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e48cecb55435e10c93c6aface1a1c7ef32f4e71;p=pandora-kernel.git drm/i2c: tda998x: move drm_i2c_encoder_destroy call Currently tda998x_encoder_destroy() calls cec_write() and reg_clear(), as part of the release procedure. Such calls need to access the I2C bus and therefore, we need to call them before drm_i2c_encoder_destroy() which unregisters the I2C device. This commit moves the latter so it's done afterwards. Signed-off-by: Guido Martínez Signed-off-by: Ezequiel García Cc: #v3.9+ Signed-off-by: Russell King --- Reading git-diff-tree failed