Message ID | 20210111165013.496897-1-geert+renesas@glider.be |
---|---|
State | Accepted |
Commit | 6dd169fc201d05e8da249ee2eabf1f23b0ccb1e4 |
Headers | show |
Series | [v2] pinctrl: renesas: checker: Restrict checks to Renesas platforms | expand |
diff --git a/drivers/pinctrl/renesas/core.c b/drivers/pinctrl/renesas/core.c index b16759a321ae9c94..2bfd3006f6fda445 100644 --- a/drivers/pinctrl/renesas/core.c +++ b/drivers/pinctrl/renesas/core.c @@ -1066,6 +1066,10 @@ static void __init sh_pfc_check_driver(const struct platform_driver *pdrv) { unsigned int i; + if (!IS_ENABLED(CONFIG_SUPERH) && + !of_find_matching_node(NULL, pdrv->driver.of_match_table)) + return; + sh_pfc_regs = kcalloc(SH_PFC_MAX_REGS, sizeof(*sh_pfc_regs), GFP_KERNEL); if (!sh_pfc_regs)