summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i2c
diff options
context:
space:
mode:
authorPeter Rosin2018-08-02 11:25:19 +0200
committerRussell King2018-08-02 11:25:19 +0200
commitb1eb4f844f8c35e252eebfacacc438644d9f9ba8 (patch)
tree7cbb9d5e972cc3df58a575246d29e77bb86300f7 /drivers/gpu/drm/i2c
parentMerge commit 'refs/for-upstream/mali-dp' of git://linux-arm.org/linux-ld into... (diff)
downloadkernel-qcow2-linux-b1eb4f844f8c35e252eebfacacc438644d9f9ba8.tar.gz
kernel-qcow2-linux-b1eb4f844f8c35e252eebfacacc438644d9f9ba8.tar.xz
kernel-qcow2-linux-b1eb4f844f8c35e252eebfacacc438644d9f9ba8.zip
drm/i2c: tda998x: find the drm_device via the drm_connector
This prepares for being a drm_bridge which will not register the encoder. That makes the connector the better choice. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Peter Rosin <peda@axentia.se> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'drivers/gpu/drm/i2c')
-rw-r--r--drivers/gpu/drm/i2c/tda998x_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c
index 0038c976536a..c39f7c36ba24 100644
--- a/drivers/gpu/drm/i2c/tda998x_drv.c
+++ b/drivers/gpu/drm/i2c/tda998x_drv.c
@@ -762,7 +762,7 @@ static void tda998x_detect_work(struct work_struct *work)
{
struct tda998x_priv *priv =
container_of(work, struct tda998x_priv, detect_work);
- struct drm_device *dev = priv->encoder.dev;
+ struct drm_device *dev = priv->connector.dev;
if (dev)
drm_kms_helper_hotplug_event(dev);