Skip to content

Commit f0dd78d

Browse files
jk-ozlabsbebarino
authored andcommitted
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 <[email protected]> Signed-off-by: Jeremy Kerr <[email protected]> Link: https://lore.kernel.org/r/[email protected] Tested-by: Joel Stanley <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent fe15c26 commit f0dd78d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/clk/clk-ast2600.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,9 @@ static int aspeed_g6_clk_probe(struct platform_device *pdev)
652652
const struct aspeed_gate_data *gd = &aspeed_g6_gates[i];
653653
u32 gate_flags;
654654

655+
if (!gd->name)
656+
continue;
657+
655658
/*
656659
* Special case: the USB port 1 clock (bit 14) is always
657660
* working the opposite way from the other ones.

0 commit comments

Comments
 (0)