Every I2C adapter should have a parent.

Signed-off-by: Antti Palosaari <cr...@iki.fi>
---
 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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to