clk: meson: gxbb: fix protection against undefined clks
authorJerome Brunet <jbrunet@baylibre.com>
Thu, 27 Jul 2017 16:17:55 +0000 (18:17 +0200)
committerNeil Armstrong <narmstrong@baylibre.com>
Fri, 4 Aug 2017 15:49:32 +0000 (17:49 +0200)
commit1f6f1dcb8d1c3340f73c5ba01d474fa07942ec2b
tree412bbc439a87ae4565ee119b3035a5189ba022f7
parentde2bc4178b8d475fb0bc06c280606fdf816a3f6c
clk: meson: gxbb: fix protection against undefined clks

gxbb 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: a70c6e06ed7c ("clk: meson: gxbb: protect against holes in the onecell_data array")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
drivers/clk/meson/gxbb.c