Skip to content

Commit 81e68e2

Browse files
andy-shevWolfram Sang
authored andcommitted
media: i2c: ds90ub960: Remove of_node assignment
Remove of_node assignment which duplicates fwnode in struct i2c_board_info. In general drivers must not set both, it's quite confusing. The I²C core will consider fwnode with a priority and of_node is subject to remove from above mentioned data structure. Reviewed-by: Sakari Ailus <[email protected]> Acked-by: Sakari Ailus <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]> Tested-by: Tomi Valkeinen <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent adc8d12 commit 81e68e2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/media/i2c/ds90ub960.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1682,7 +1682,6 @@ static int ub960_rxport_add_serializer(struct ub960_data *priv, u8 nport)
16821682
struct device *dev = &priv->client->dev;
16831683
struct ds90ub9xx_platform_data *ser_pdata = &rxport->ser.pdata;
16841684
struct i2c_board_info ser_info = {
1685-
.of_node = to_of_node(rxport->ser.fwnode),
16861685
.fwnode = rxport->ser.fwnode,
16871686
.platform_data = ser_pdata,
16881687
};

0 commit comments

Comments
 (0)