firmware-utils: bump to git HEAD
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-5.4 / 950-0511-clk-bcm-rpi-Statically-init-clk_init_data.patch
1 From 7916b5f66f3becb9f223e8a6d8c0a6c0edd8964c Mon Sep 17 00:00:00 2001
2 From: Maxime Ripard <maxime@cerno.tech>
3 Date: Fri, 7 Feb 2020 14:17:54 +0100
4 Subject: [PATCH] clk: bcm: rpi: Statically init clk_init_data
5
6 Instead of declaring the clk_init_data and then calling memset on it, just
7 initialise properly.
8
9 Cc: Michael Turquette <mturquette@baylibre.com>
10 Cc: Stephen Boyd <sboyd@kernel.org>
11 Cc: linux-clk@vger.kernel.org
12 Acked-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
13 Signed-off-by: Maxime Ripard <maxime@cerno.tech>
14 ---
15 drivers/clk/bcm/clk-raspberrypi.c | 3 +--
16 1 file changed, 1 insertion(+), 2 deletions(-)
17
18 --- a/drivers/clk/bcm/clk-raspberrypi.c
19 +++ b/drivers/clk/bcm/clk-raspberrypi.c
20 @@ -175,11 +175,10 @@ static const struct clk_ops raspberrypi_
21
22 static int raspberrypi_register_pllb(struct raspberrypi_clk *rpi)
23 {
24 + struct clk_init_data init = {};
25 u32 min_rate = 0, max_rate = 0;
26 - struct clk_init_data init;
27 int ret;
28
29 - memset(&init, 0, sizeof(init));
30
31 /* All of the PLLs derive from the external oscillator. */
32 init.parent_names = (const char *[]){ "osc" };