linux-hardened/drivers/gpu/drm/bridge
Vladimir Zapolskiy 9f04a1f2b3 drm: dw_hdmi: use of_get_i2c_adapter_by_node interface
This change is needed to properly lock I2C bus driver, which serves
DDC.

The change fixes an overflow over zero of I2C bus driver user counter:

  root@imx6q:~# lsmod
  Not tainted
  dw_hdmi_ahb_audio 4082 0 - Live 0xbf02c000
  dw_hdmi_imx 3498 0 - Live 0xbf00d000
  dw_hdmi 16398 2 dw_hdmi_ahb_audio,dw_hdmi_imx, Live 0xbf004000
  i2c_imx 16687 0 - Live 0xbf017000

  root@imx6q:~# rmmod dw_hdmi_imx
  root@imx6q:~# lsmod
  Not tainted
  dw_hdmi_ahb_audio 4082 0 - Live 0xbf02c000
  dw_hdmi 16398 1 dw_hdmi_ahb_audio, Live 0xbf004000
  i2c_imx 16687 -1 - Live 0xbf017000
                ^^

  root@imx6q:~# rmmod i2c_imx
  rmmod: ERROR: Module i2c_imx is in use

Note that prior to this change put_device() coupled with
of_find_i2c_adapter_by_node() was missing on error path of
dw_hdmi_bind(), added i2c_put_adapter() there along with the change.

Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
2016-09-19 08:06:41 +02:00
..
adv7511 drm/bridge: adv7533: Change number of DSI lanes dynamically 2016-07-13 14:24:37 +05:30
analogix drm/bridge: analogix_dp: fix no drm hpd event when panel plug in 2016-07-05 21:53:40 +08:00
analogix-anx78xx.c drm/bridge: anx78xx: Rely on the default ->best_encoder() behavior 2016-06-10 17:25:16 +02:00
analogix-anx78xx.h drm/bridge: Add Analogix anx78xx support 2016-05-12 11:32:14 +02:00
dw-hdmi-ahb-audio.c drm/bridge: dw-hdmi: Use dashes in filenames 2015-11-24 17:52:58 +01:00
dw-hdmi-audio.h drm/bridge: dw-hdmi: Use dashes in filenames 2015-11-24 17:52:58 +01:00
dw-hdmi.c drm: dw_hdmi: use of_get_i2c_adapter_by_node interface 2016-09-19 08:06:41 +02:00
dw-hdmi.h drm/bridge: dw-hdmi: Use dashes in filenames 2015-11-24 17:52:58 +01:00
Kconfig drm/bridge: tc358767: Add DPI to eDP bridge driver 2016-07-17 14:00:57 +05:30
Makefile drm/bridge: tc358767: Add DPI to eDP bridge driver 2016-07-17 14:00:57 +05:30
nxp-ptn3460.c drm/bridge: ptn3460: Rely on the default ->best_encoder() behavior 2016-06-10 17:25:20 +02:00
parade-ps8622.c drm/bridge: ps8622: Delete an unnecessary check before backlight_device_unregister() 2016-07-22 11:23:38 -04:00
sii902x.c drm/bridge: Add sii902x driver 2016-06-20 15:55:49 +02:00
tc358767.c drm/bridge: tc358767: Add DPI to eDP bridge driver 2016-07-17 14:00:57 +05:30