OSDN Git Service

clk: meson: meson8b: fix protection against undefined clks
authorJerome Brunet <jbrunet@baylibre.com>
Thu, 27 Jul 2017 16:17:54 +0000 (18:17 +0200)
committerNeil Armstrong <narmstrong@baylibre.com>
Fri, 4 Aug 2017 15:49:31 +0000 (17:49 +0200)
commitde2bc4178b8d475fb0bc06c280606fdf816a3f6c
treec0f4c817220db3e6b1a82925f267ffd927d207f6
parent0f9b973b65910eeb0f73bb1a2178bc0826a1b791
clk: meson: meson8b: fix protection against undefined clks

meson8b clock driver gracefully handles case where the clkid is defined
but the clock hw pointer is not provided, as long as it is not at the end
of the hw_onecell_data array.

This patch ensure that the last entries are defined as well to handle
this particular case.

Fixes: e92f7cca446e ("clk: meson8b: clean up fixed rate clocks")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
drivers/clk/meson/meson8b.c