]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit81f04b4116aac5426fcd1562ab985d3a95e5a33f
tree70230467fd0a1a1988f64dd9ec03e41b990d9cd6
parentf630c74755763954e46ada22cb887770a3c4fdd4
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: fdf5937655b7 ("bus: ti-sysc: Add handling for clkctrl opt clocks")
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/bus/ti-sysc.c