Commit 80cde64f authored by Geert Uytterhoeven's avatar Geert Uytterhoeven

pinctrl: sh-pfc: Mark run-time debug code __init

All run-time debug code is called from sh_pfc_init(), which is __init.

Fixes: 6161b39a ("pinctrl: sh-pfc: Validate pinmux tables at runtime when debugging")
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent 5f304f8c
...@@ -717,7 +717,7 @@ static int sh_pfc_suspend_init(struct sh_pfc *pfc) { return 0; } ...@@ -717,7 +717,7 @@ static int sh_pfc_suspend_init(struct sh_pfc *pfc) { return 0; }
#endif /* CONFIG_PM_SLEEP && CONFIG_ARM_PSCI_FW */ #endif /* CONFIG_PM_SLEEP && CONFIG_ARM_PSCI_FW */
#ifdef DEBUG #ifdef DEBUG
static bool is0s(const u16 *enum_ids, unsigned int n) static bool __init is0s(const u16 *enum_ids, unsigned int n)
{ {
unsigned int i; unsigned int i;
...@@ -728,10 +728,10 @@ static bool is0s(const u16 *enum_ids, unsigned int n) ...@@ -728,10 +728,10 @@ static bool is0s(const u16 *enum_ids, unsigned int n)
return true; return true;
} }
static unsigned int sh_pfc_errors; static unsigned int sh_pfc_errors __initdata = 0;
static unsigned int sh_pfc_warnings; static unsigned int sh_pfc_warnings __initdata = 0;
static void sh_pfc_check_cfg_reg(const char *drvname, static void __init sh_pfc_check_cfg_reg(const char *drvname,
const struct pinmux_cfg_reg *cfg_reg) const struct pinmux_cfg_reg *cfg_reg)
{ {
unsigned int i, n, rw, fw; unsigned int i, n, rw, fw;
...@@ -764,7 +764,7 @@ static void sh_pfc_check_cfg_reg(const char *drvname, ...@@ -764,7 +764,7 @@ static void sh_pfc_check_cfg_reg(const char *drvname,
} }
} }
static void sh_pfc_check_info(const struct sh_pfc_soc_info *info) static void __init sh_pfc_check_info(const struct sh_pfc_soc_info *info)
{ {
const struct sh_pfc_function *func; const struct sh_pfc_function *func;
const char *drvname = info->name; const char *drvname = info->name;
...@@ -816,7 +816,7 @@ static void sh_pfc_check_info(const struct sh_pfc_soc_info *info) ...@@ -816,7 +816,7 @@ static void sh_pfc_check_info(const struct sh_pfc_soc_info *info)
sh_pfc_check_cfg_reg(drvname, &info->cfg_regs[i]); sh_pfc_check_cfg_reg(drvname, &info->cfg_regs[i]);
} }
static void sh_pfc_check_driver(const struct platform_driver *pdrv) static void __init sh_pfc_check_driver(const struct platform_driver *pdrv)
{ {
unsigned int i; unsigned int i;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment