Skip to content

Commit

Permalink
clk: ast2600: allow empty entries in aspeed_g6_gates
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeremy Kerr authored and Stephen Boyd committed Mar 6, 2023
1 parent fe15c26 commit f0dd78d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/clk/clk-ast2600.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f0dd78d

Please sign in to comment.