Merge tag 'trace-v6.9-2' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux...
[sfrench/cifs-2.6.git] / drivers / media / i2c / adv7604.c
index 810fa8826f308ff9a08b180e2ed013dfaba3128a..319db3e847c4e8269be3216f0f52a2644ad35982 100644 (file)
@@ -3204,8 +3204,8 @@ static int adv76xx_parse_dt(struct adv76xx_state *state)
 
        np = state->i2c_clients[ADV76XX_PAGE_IO]->dev.of_node;
 
-       /* Parse the endpoint. */
-       endpoint = of_graph_get_next_endpoint(np, NULL);
+       /* FIXME: Parse the endpoint. */
+       endpoint = of_graph_get_endpoint_by_regs(np, -1, -1);
        if (!endpoint)
                return -EINVAL;