summaryrefslogtreecommitdiffstats
path: root/drivers/clk/clk-ast2600.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@codeconstruct.com.au>2023-03-02 08:58:29 +0800
committerStephen Boyd <sboyd@kernel.org>2023-03-06 14:11:03 -0800
commitf0dd78de23539397e5f004fe6c41d3d45b36c7cf (patch)
tree433844777aa4daeecfeff344e0923fc7a667af20 /drivers/clk/clk-ast2600.c
parentfe15c26ee26efa11741a7b632e9f23b01aca4cc6 (diff)
downloadlinux-stable-f0dd78de23539397e5f004fe6c41d3d45b36c7cf.tar.gz
linux-stable-f0dd78de23539397e5f004fe6c41d3d45b36c7cf.tar.bz2
linux-stable-f0dd78de23539397e5f004fe6c41d3d45b36c7cf.zip
clk: ast2600: allow empty entries in aspeed_g6_gates
We're about to remove an entry from aspeed_g6_gates, but we won't want to alter/reorder existing entries. Allow empty entries in this array. Reviewed-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au> Link: https://lore.kernel.org/r/20230302005834.13171-2-jk@codeconstruct.com.au Tested-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/clk-ast2600.c')
-rw-r--r--drivers/clk/clk-ast2600.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/clk/clk-ast2600.c b/drivers/clk/clk-ast2600.c
index 9c3305bcb27a..1f08ff3c60fa 100644
--- a/drivers/clk/clk-ast2600.c
+++ b/drivers/clk/clk-ast2600.c
@@ -652,6 +652,9 @@ static int aspeed_g6_clk_probe(struct platform_device *pdev)
const struct aspeed_gate_data *gd = &aspeed_g6_gates[i];
u32 gate_flags;
+ if (!gd->name)
+ continue;
+
/*
* Special case: the USB port 1 clock (bit 14) is always
* working the opposite way from the other ones.