clk: bcm: rpi: Make the PLLB registration function return a clk_hw
authorMaxime Ripard <maxime@cerno.tech>
Fri, 7 Feb 2020 15:30:01 +0000 (16:30 +0100)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:33:34 +0000 (16:33 +0100)
commitef466858e4600ce7d63ac83d243ba5cc6460ce89
treee27bfc71976ae3275301ec637d7f337d2489ca72
parent992285c18ab72f5440447445568a6ba2b5837b91
clk: bcm: rpi: Make the PLLB registration function return a clk_hw

The raspberrypi_register_pllb has been returning an integer so far to
notify whether the functions has exited successfully or not.

However, the OF provider functions in the clock framework require access to
the clk_hw structure so that we can expose those clocks to device tree
consumers.

Since we'll want that for the future clocks, let's return a clk_hw pointer
instead of the return code.

Cc: Michael Turquette <mturquette@baylibre.com>
Cc: linux-clk@vger.kernel.org
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/clk/bcm/clk-raspberrypi.c