fbdev: omap2: connector-dvi: use of_get_i2c_adapter_by_node interface
authorVladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Tue, 15 Sep 2015 13:12:33 +0000 (16:12 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 24 Sep 2015 11:35:37 +0000 (14:35 +0300)
commitad38cc5f6d4f2c74ed69e2c017691e428549b2bd
tree0ff87ea85e56bc91079f6128e7abd373de50e2c6
parent23aa4db78aa7da994ae12d85acf7413ba2517946
fbdev: omap2: connector-dvi: use of_get_i2c_adapter_by_node interface

This change is needed to properly lock I2C bus driver, which serves DDC.

Prior to this change i2c_put_adapter() is misused, which may lead to
an overflow over zero of I2C bus driver user counter.

Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/omap2/displays-new/connector-dvi.c