]> git.ipfire.org Git - people/ms/linux.git/commit
drm/i2c: tda998x: move drm_i2c_encoder_destroy call
authorGuido Martínez <guido@vanguardiasur.com.ar>
Tue, 17 Jun 2014 14:17:03 +0000 (11:17 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jul 2014 18:21:27 +0000 (11:21 -0700)
commitf6f7bbbf4b08d6f96821029e13ef91f7c3689b57
tree8f73635f6436e36bb1f99d68cd5fc1b856f19ef7
parent509a64038ca3f5c07c6ea3e448d49bf5c32f4f4f
drm/i2c: tda998x: move drm_i2c_encoder_destroy call

commit 2e48cecb55435e10c93c6aface1a1c7ef32f4e71 upstream.

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 <guido@vanguardiasur.com.ar>
Signed-off-by: Ezequiel García <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i2c/tda998x_drv.c