Skip to content

Commit 608c803

Browse files
amboarlinusw
authored andcommitted
pinctrl: aspeed: g5: Constrain LPC binding revision workaround to AST2500
Discovering a phandle to an AST2400 or AST2600 LPC node indicates an error for the purpose of the AST2500 pinctrl driver. Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au> Reviewed-by: Linus Walleij <linusw@kernel.org> Signed-off-by: Linus Walleij <linusw@kernel.org>
1 parent d6df4ab commit 608c803

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/pinctrl/aspeed/pinctrl-aspeed-g5.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2654,9 +2654,7 @@ static struct regmap *aspeed_g5_acquire_regmap(struct aspeed_pinmux_data *ctx,
26542654
np = of_parse_phandle(ctx->dev->of_node,
26552655
"aspeed,external-nodes", 1);
26562656
if (np) {
2657-
if (!of_device_is_compatible(np->parent, "aspeed,ast2400-lpc-v2") &&
2658-
!of_device_is_compatible(np->parent, "aspeed,ast2500-lpc-v2") &&
2659-
!of_device_is_compatible(np->parent, "aspeed,ast2600-lpc-v2"))
2657+
if (!of_device_is_compatible(np->parent, "aspeed,ast2500-lpc-v2"))
26602658
return ERR_PTR(-ENODEV);
26612659

26622660
map = syscon_node_to_regmap(np->parent);

0 commit comments

Comments
 (0)