media: i2c: replace of_graph_get_next_endpoint()
[sfrench/cifs-2.6.git] / drivers / media / i2c / adv7343.c
index ff21cd4744d3d5b383dabe9e63963a83792750f0..4fbe4e18570e9586fe899f7ad3581bbe0277f95d 100644 (file)
@@ -403,7 +403,7 @@ adv7343_get_pdata(struct i2c_client *client)
        if (!IS_ENABLED(CONFIG_OF) || !client->dev.of_node)
                return client->dev.platform_data;
 
-       np = of_graph_get_next_endpoint(client->dev.of_node, NULL);
+       np = of_graph_get_endpoint_by_regs(client->dev.of_node, 0, -1);
        if (!np)
                return NULL;