Tony Lindgren c97c862083 bus: ti-sysc: Fix optional clocks array access
We should be checking ddata->clocks[i] instead of clock_names[i]
for the optional clocks. Currently this just happens to work for
the typical case of one fck and one optional clock.

Fixes: 09dfe5810762 ("bus: ti-sysc: Add handling for clkctrl opt clocks")
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
2018-05-18 07:54:44 -07:00
..
2018-03-16 20:44:12 +01:00
2018-04-04 08:42:51 -05:00
2018-04-06 18:31:06 -07:00
2018-04-06 18:31:06 -07:00
2016-09-08 15:27:05 +02:00