OSDN Git Service

bus: ti-sysc: Fix getting optional clocks in clock_roles
authorTony Lindgren <tony@atomide.com>
Thu, 15 Nov 2018 22:46:52 +0000 (14:46 -0800)
committerTony Lindgren <tony@atomide.com>
Thu, 15 Nov 2018 22:46:52 +0000 (14:46 -0800)
commit7b4f8ac2f1acdff3c0cce23d8c3b86434a6e768a
tree70230467fd0a1a1988f64dd9ec03e41b990d9cd6
parent651022382c7f8da46cb4872a545ee1da6d097d2a
bus: ti-sysc: Fix getting optional clocks in clock_roles

We can have holes in clock_roles with interface clock missing for
example. Currently getting an optional clock will fail if there are
only a functional clock and an optional clock.

Fixes: 09dfe5810762 ("bus: ti-sysc: Add handling for clkctrl opt clocks")
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/bus/ti-sysc.c