Commit 26471693 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven

pinctrl: sh-pfc: checker: Move data before code

Restructure the checker to move all data definitions to the top, before
the code.
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: default avatarNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Link: https://lore.kernel.org/r/20200110131927.1029-2-geert+renesas@glider.be
parent bb6d3fb3
...@@ -726,6 +726,9 @@ static int sh_pfc_suspend_init(struct sh_pfc *pfc) { return 0; } ...@@ -726,6 +726,9 @@ 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 unsigned int sh_pfc_errors __initdata = 0;
static unsigned int sh_pfc_warnings __initdata = 0;
static bool __init 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;
...@@ -737,9 +740,6 @@ static bool __init is0s(const u16 *enum_ids, unsigned int n) ...@@ -737,9 +740,6 @@ static bool __init is0s(const u16 *enum_ids, unsigned int n)
return true; return true;
} }
static unsigned int sh_pfc_errors __initdata = 0;
static unsigned int sh_pfc_warnings __initdata = 0;
static void __init 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)
{ {
......
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