From: Geert Uytterhoeven Date: Fri, 10 Jan 2020 13:19:15 +0000 (+0100) Subject: pinctrl: sh-pfc: checker: Move data before code X-Git-Tag: v5.15~4171^2~21^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=264716935ed2c10adddbf6fe65214534346062fe;p=platform%2Fkernel%2Flinux-starfive.git 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: Geert Uytterhoeven Reviewed-by: Niklas Söderlund Link: https://lore.kernel.org/r/20200110131927.1029-2-geert+renesas@glider.be --- diff --git a/drivers/pinctrl/sh-pfc/core.c b/drivers/pinctrl/sh-pfc/core.c index 8220911..a565eff 100644 --- a/drivers/pinctrl/sh-pfc/core.c +++ b/drivers/pinctrl/sh-pfc/core.c @@ -726,6 +726,9 @@ static int sh_pfc_suspend_init(struct sh_pfc *pfc) { return 0; } #endif /* CONFIG_PM_SLEEP && CONFIG_ARM_PSCI_FW */ #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) { unsigned int i; @@ -737,9 +740,6 @@ static bool __init is0s(const u16 *enum_ids, unsigned int n) 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, const struct pinmux_cfg_reg *cfg_reg) {