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>
np = of_parse_phandle(ctx->dev->of_node,
"aspeed,external-nodes", 1);
if (np) {
- if (!of_device_is_compatible(np->parent, "aspeed,ast2400-lpc-v2") &&
- !of_device_is_compatible(np->parent, "aspeed,ast2500-lpc-v2") &&
- !of_device_is_compatible(np->parent, "aspeed,ast2600-lpc-v2"))
+ if (!of_device_is_compatible(np->parent, "aspeed,ast2500-lpc-v2"))
return ERR_PTR(-ENODEV);
map = syscon_node_to_regmap(np->parent);