[PATCH 6/8] m88ds3103: add parent for I2C adapter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Every I2C adapter should have a parent.

Signed-off-by: Antti Palosaari <crope@xxxxxx>
---
 drivers/media/dvb-frontends/m88ds3103.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/media/dvb-frontends/m88ds3103.c b/drivers/media/dvb-frontends/m88ds3103.c
index 91b3729..fe4a67e 100644
--- a/drivers/media/dvb-frontends/m88ds3103.c
+++ b/drivers/media/dvb-frontends/m88ds3103.c
@@ -1227,6 +1227,7 @@ struct dvb_frontend *m88ds3103_attach(const struct m88ds3103_config *cfg,
 			sizeof(priv->i2c_adapter.name));
 	priv->i2c_adapter.algo = &m88ds3103_tuner_i2c_algo;
 	priv->i2c_adapter.algo_data = NULL;
+	priv->i2c_adapter.dev.parent = &i2c->dev;
 	i2c_set_adapdata(&priv->i2c_adapter, priv);
 	ret = i2c_add_adapter(&priv->i2c_adapter);
 	if (ret) {
-- 
1.8.4.2

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux