linux-samsung-soc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Chanho Park" <chanho61.park@samsung.com>
To: "'Will McVicker'" <willmcvicker@google.com>,
	"'Russell King'" <linux@armlinux.org.uk>,
	"'Krzysztof Kozlowski'" <krzysztof.kozlowski@canonical.com>,
	"'Catalin Marinas'" <catalin.marinas@arm.com>,
	"'Will Deacon'" <will@kernel.org>,
	"'Michael Turquette'" <mturquette@baylibre.com>,
	"'Stephen Boyd'" <sboyd@kernel.org>,
	"'Sylwester Nawrocki'" <s.nawrocki@samsung.com>,
	"'Tomasz Figa'" <tomasz.figa@gmail.com>,
	"'Chanwoo Choi'" <cw00.choi@samsung.com>,
	"'Linus Walleij'" <linus.walleij@linaro.org>,
	"'Alessandro Zummo'" <a.zummo@towertech.it>,
	"'Alexandre Belloni'" <alexandre.belloni@bootlin.com>,
	"'John Stultz'" <john.stultz@linaro.org>,
	"'Thomas Gleixner'" <tglx@linutronix.de>
Cc: "'Lee Jones'" <lee.jones@linaro.org>,
	"'Geert Uytterhoeven'" <geert@linux-m68k.org>,
	"'Saravana Kannan'" <saravanak@google.com>,
	<kernel-team@android.com>, <linux-arm-kernel@lists.infradead.org>,
	<linux-kernel@vger.kernel.org>,
	<linux-samsung-soc@vger.kernel.org>, <linux-clk@vger.kernel.org>,
	<linux-gpio@vger.kernel.org>, <linux-rtc@vger.kernel.org>
Subject: RE: [PATCH v2 08/12] pinctrl: samsung: modularize the ARM and ARM64 pinctrls
Date: Wed, 29 Sep 2021 11:01:20 +0900	[thread overview]
Message-ID: <005501d7b4d5$e60f38f0$b22daad0$@samsung.com> (raw)
In-Reply-To: <20210928235635.1348330-9-willmcvicker@google.com>

> This patch modularizes the Samsung Exynos ARM and ARM64 pinctrl drivers.
> It creates 2 kernel modules (pending Kconfig changes):

Hmm. I think we can use pinctrl-samsung.ko as a super module because chip-specific objects can be selectable by Kconfig option.
So, we don't need to separate them.

> 
> 1) pinctrl-samsung.ko: common pinctrl driver for all the samsung pinctrl
>    drivers.
> 2) pinctrl_exynos.ko: ARM and ARM64 pinctrl driver.
> 
> Signed-off-by: Will McVicker <willmcvicker@google.com>
> ---
>  drivers/pinctrl/samsung/Makefile              |  13 +--
>  drivers/pinctrl/samsung/pinctrl-exynos-arm.c  | 102 ++++++++++--------
>  .../pinctrl/samsung/pinctrl-exynos-arm64.c    |  73 +++++++------
>  drivers/pinctrl/samsung/pinctrl-exynos.c      |  17 +--
>  drivers/pinctrl/samsung/pinctrl-samsung.c     |  11 +-
>  5 files changed, 117 insertions(+), 99 deletions(-)
> 
> diff --git a/drivers/pinctrl/samsung/Makefile
> b/drivers/pinctrl/samsung/Makefile
> index ed951df6a112..767ce3357a19 100644
> --- a/drivers/pinctrl/samsung/Makefile
> +++ b/drivers/pinctrl/samsung/Makefile
> @@ -1,9 +1,10 @@
>  # SPDX-License-Identifier: GPL-2.0
>  # Samsung pin control drivers
> 
> -obj-$(CONFIG_PINCTRL_SAMSUNG)	+= pinctrl-samsung.o
> -obj-$(CONFIG_PINCTRL_EXYNOS)	+= pinctrl-exynos.o
> -obj-$(CONFIG_PINCTRL_EXYNOS_ARM)	+= pinctrl-exynos-arm.o
> -obj-$(CONFIG_PINCTRL_EXYNOS_ARM64)	+= pinctrl-exynos-arm64.o
> -obj-$(CONFIG_PINCTRL_S3C24XX)	+= pinctrl-s3c24xx.o
> -obj-$(CONFIG_PINCTRL_S3C64XX)	+= pinctrl-s3c64xx.o
> +obj-$(CONFIG_PINCTRL_SAMSUNG)			+= pinctrl-samsung.o
> +obj-$(CONFIG_PINCTRL_EXYNOS)			+= pinctrl_exynos.o
> +pinctrl_exynos-y				+= pinctrl-exynos.o
> +pinctrl_exynos-$(CONFIG_PINCTRL_EXYNOS_ARM)	+= pinctrl-exynos-arm.o
> +pinctrl_exynos-$(CONFIG_PINCTRL_EXYNOS_ARM64)	+= pinctrl-exynos-arm64.o
> +obj-$(CONFIG_PINCTRL_S3C24XX)			+= pinctrl-s3c24xx.o
> +obj-$(CONFIG_PINCTRL_S3C64XX)			+= pinctrl-s3c64xx.o
> diff --git a/drivers/pinctrl/samsung/pinctrl-exynos-arm.c
> b/drivers/pinctrl/samsung/pinctrl-exynos-arm.c
> index 85ddf49a5188..f3bd8cf1bbb6 100644
> --- a/drivers/pinctrl/samsung/pinctrl-exynos-arm.c
> +++ b/drivers/pinctrl/samsung/pinctrl-exynos-arm.c
> @@ -83,12 +83,12 @@ s5pv210_retention_init(struct samsung_pinctrl_drv_data
> *drvdata,
>  	return ctrl;
>  }
> 
> -static const struct samsung_retention_data s5pv210_retention_data
> __initconst = {
> +static const struct samsung_retention_data s5pv210_retention_data = {
>  	.init	 = s5pv210_retention_init,
>  };

Any reason why do we need to drop __initconst and __init?
AFAIK, they will be automatically converted in case of MODULE.

> 
>  /* pin banks of s5pv210 pin-controller */ -static const struct
> samsung_pin_bank_data s5pv210_pin_bank[] __initconst = {
> +static const struct samsung_pin_bank_data s5pv210_pin_bank[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTG(8, 0x000, "gpa0", 0x00),
>  	EXYNOS_PIN_BANK_EINTG(4, 0x020, "gpa1", 0x04), @@ -126,7 +126,7 @@
> static const struct samsung_pin_bank_data s5pv210_pin_bank[] __initconst =
> {
>  	EXYNOS_PIN_BANK_EINTW(8, 0xc60, "gph3", 0x0c),  };
> 
> -static const struct samsung_pin_ctrl s5pv210_pin_ctrl[] __initconst = {
> +static const struct samsung_pin_ctrl s5pv210_pin_ctrl[] = {
>  	{
>  		/* pin-controller instance 0 data */
>  		.pin_banks	= s5pv210_pin_bank,
> @@ -139,16 +139,17 @@ static const struct samsung_pin_ctrl
> s5pv210_pin_ctrl[] __initconst = {
>  	},
>  };
> 
> -const struct samsung_pinctrl_of_match_data s5pv210_of_data __initconst =
> {
> +const struct samsung_pinctrl_of_match_data s5pv210_of_data = {
>  	.ctrl		= s5pv210_pin_ctrl,
>  	.num_ctrl	= ARRAY_SIZE(s5pv210_pin_ctrl),
>  };
> +EXPORT_SYMBOL_GPL(s5pv210_of_data);
> 
>  /* Pad retention control code for accessing PMU regmap */  static
> atomic_t exynos_shared_retention_refcnt;
> 
>  /* pin banks of exynos3250 pin-controller 0 */ -static const struct
> samsung_pin_bank_data exynos3250_pin_banks0[] __initconst = {
> +static const struct samsung_pin_bank_data exynos3250_pin_banks0[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTG(8, 0x000, "gpa0", 0x00),
>  	EXYNOS_PIN_BANK_EINTG(6, 0x020, "gpa1", 0x04), @@ -160,7 +161,7 @@
> static const struct samsung_pin_bank_data exynos3250_pin_banks0[]
> __initconst =  };
> 
>  /* pin banks of exynos3250 pin-controller 1 */ -static const struct
> samsung_pin_bank_data exynos3250_pin_banks1[] __initconst = {
> +static const struct samsung_pin_bank_data exynos3250_pin_banks1[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTN(8, 0x120, "gpe0"),
>  	EXYNOS_PIN_BANK_EINTN(8, 0x140, "gpe1"), @@ -196,7 +197,7 @@ static
> const u32 exynos3250_retention_regs[] = {
>  	S5P_PAD_RET_SPI_OPTION,
>  };
> 
> -static const struct samsung_retention_data exynos3250_retention_data
> __initconst = {
> +static const struct samsung_retention_data exynos3250_retention_data =
> +{
>  	.regs	 = exynos3250_retention_regs,
>  	.nr_regs = ARRAY_SIZE(exynos3250_retention_regs),
>  	.value	 = EXYNOS_WAKEUP_FROM_LOWPWR,
> @@ -208,7 +209,7 @@ static const struct samsung_retention_data
> exynos3250_retention_data __initconst
>   * Samsung pinctrl driver data for Exynos3250 SoC. Exynos3250 SoC
> includes
>   * two gpio/pin-mux/pinconfig controllers.
>   */
> -static const struct samsung_pin_ctrl exynos3250_pin_ctrl[] __initconst =
> {
> +static const struct samsung_pin_ctrl exynos3250_pin_ctrl[] = {
>  	{
>  		/* pin-controller instance 0 data */
>  		.pin_banks	= exynos3250_pin_banks0,
> @@ -229,13 +230,14 @@ static const struct samsung_pin_ctrl
> exynos3250_pin_ctrl[] __initconst = {
>  	},
>  };
> 
> -const struct samsung_pinctrl_of_match_data exynos3250_of_data __initconst
> = {
> +const struct samsung_pinctrl_of_match_data exynos3250_of_data = {
>  	.ctrl		= exynos3250_pin_ctrl,
>  	.num_ctrl	= ARRAY_SIZE(exynos3250_pin_ctrl),
>  };
> +EXPORT_SYMBOL_GPL(exynos3250_of_data);
> 
>  /* pin banks of exynos4210 pin-controller 0 */ -static const struct
> samsung_pin_bank_data exynos4210_pin_banks0[] __initconst = {
> +static const struct samsung_pin_bank_data exynos4210_pin_banks0[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTG(8, 0x000, "gpa0", 0x00),
>  	EXYNOS_PIN_BANK_EINTG(6, 0x020, "gpa1", 0x04), @@ -256,7 +258,7 @@
> static const struct samsung_pin_bank_data exynos4210_pin_banks0[]
> __initconst =  };
> 
>  /* pin banks of exynos4210 pin-controller 1 */ -static const struct
> samsung_pin_bank_data exynos4210_pin_banks1[] __initconst = {
> +static const struct samsung_pin_bank_data exynos4210_pin_banks1[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTG(8, 0x000, "gpj0", 0x00),
>  	EXYNOS_PIN_BANK_EINTG(5, 0x020, "gpj1", 0x04), @@ -281,7 +283,7 @@
> static const struct samsung_pin_bank_data exynos4210_pin_banks1[]
> __initconst =  };
> 
>  /* pin banks of exynos4210 pin-controller 2 */ -static const struct
> samsung_pin_bank_data exynos4210_pin_banks2[] __initconst = {
> +static const struct samsung_pin_bank_data exynos4210_pin_banks2[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTN(7, 0x000, "gpz"),  }; @@ -296,7 +298,7 @@
> static const u32 exynos4_retention_regs[] = {
>  	S5P_PAD_RET_EBIB_OPTION,
>  };
> 
> -static const struct samsung_retention_data exynos4_retention_data
> __initconst = {
> +static const struct samsung_retention_data exynos4_retention_data = {
>  	.regs	 = exynos4_retention_regs,
>  	.nr_regs = ARRAY_SIZE(exynos4_retention_regs),
>  	.value	 = EXYNOS_WAKEUP_FROM_LOWPWR,
> @@ -309,7 +311,7 @@ static const u32 exynos4_audio_retention_regs[] = {
>  	S5P_PAD_RET_MAUDIO_OPTION,
>  };
> 
> -static const struct samsung_retention_data exynos4_audio_retention_data
> __initconst = {
> +static const struct samsung_retention_data exynos4_audio_retention_data
> += {
>  	.regs	 = exynos4_audio_retention_regs,
>  	.nr_regs = ARRAY_SIZE(exynos4_audio_retention_regs),
>  	.value	 = EXYNOS_WAKEUP_FROM_LOWPWR,
> @@ -320,7 +322,7 @@ static const struct samsung_retention_data
> exynos4_audio_retention_data __initco
>   * Samsung pinctrl driver data for Exynos4210 SoC. Exynos4210 SoC
> includes
>   * three gpio/pin-mux/pinconfig controllers.
>   */
> -static const struct samsung_pin_ctrl exynos4210_pin_ctrl[] __initconst =
> {
> +static const struct samsung_pin_ctrl exynos4210_pin_ctrl[] = {
>  	{
>  		/* pin-controller instance 0 data */
>  		.pin_banks	= exynos4210_pin_banks0,
> @@ -346,13 +348,14 @@ static const struct samsung_pin_ctrl
> exynos4210_pin_ctrl[] __initconst = {
>  	},
>  };
> 
> -const struct samsung_pinctrl_of_match_data exynos4210_of_data __initconst
> = {
> +const struct samsung_pinctrl_of_match_data exynos4210_of_data = {
>  	.ctrl		= exynos4210_pin_ctrl,
>  	.num_ctrl	= ARRAY_SIZE(exynos4210_pin_ctrl),
>  };
> +EXPORT_SYMBOL_GPL(exynos4210_of_data);
> 
>  /* pin banks of exynos4x12 pin-controller 0 */ -static const struct
> samsung_pin_bank_data exynos4x12_pin_banks0[] __initconst = {
> +static const struct samsung_pin_bank_data exynos4x12_pin_banks0[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTG(8, 0x000, "gpa0", 0x00),
>  	EXYNOS_PIN_BANK_EINTG(6, 0x020, "gpa1", 0x04), @@ -370,7 +373,7 @@
> static const struct samsung_pin_bank_data exynos4x12_pin_banks0[]
> __initconst =  };
> 
>  /* pin banks of exynos4x12 pin-controller 1 */ -static const struct
> samsung_pin_bank_data exynos4x12_pin_banks1[] __initconst = {
> +static const struct samsung_pin_bank_data exynos4x12_pin_banks1[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTG(7, 0x040, "gpk0", 0x08),
>  	EXYNOS_PIN_BANK_EINTG(7, 0x060, "gpk1", 0x0c), @@ -398,13 +401,13
> @@ static const struct samsung_pin_bank_data exynos4x12_pin_banks1[]
> __initconst =  };
> 
>  /* pin banks of exynos4x12 pin-controller 2 */ -static const struct
> samsung_pin_bank_data exynos4x12_pin_banks2[] __initconst = {
> +static const struct samsung_pin_bank_data exynos4x12_pin_banks2[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTG(7, 0x000, "gpz", 0x00),  };
> 
>  /* pin banks of exynos4x12 pin-controller 3 */ -static const struct
> samsung_pin_bank_data exynos4x12_pin_banks3[] __initconst = {
> +static const struct samsung_pin_bank_data exynos4x12_pin_banks3[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTG(8, 0x000, "gpv0", 0x00),
>  	EXYNOS_PIN_BANK_EINTG(8, 0x020, "gpv1", 0x04), @@ -417,7 +420,7 @@
> static const struct samsung_pin_bank_data exynos4x12_pin_banks3[]
> __initconst =
>   * Samsung pinctrl driver data for Exynos4x12 SoC. Exynos4x12 SoC
> includes
>   * four gpio/pin-mux/pinconfig controllers.
>   */
> -static const struct samsung_pin_ctrl exynos4x12_pin_ctrl[] __initconst =
> {
> +static const struct samsung_pin_ctrl exynos4x12_pin_ctrl[] = {
>  	{
>  		/* pin-controller instance 0 data */
>  		.pin_banks	= exynos4x12_pin_banks0,
> @@ -453,13 +456,14 @@ static const struct samsung_pin_ctrl
> exynos4x12_pin_ctrl[] __initconst = {
>  	},
>  };
> 
> -const struct samsung_pinctrl_of_match_data exynos4x12_of_data __initconst
> = {
> +const struct samsung_pinctrl_of_match_data exynos4x12_of_data = {
>  	.ctrl		= exynos4x12_pin_ctrl,
>  	.num_ctrl	= ARRAY_SIZE(exynos4x12_pin_ctrl),
>  };
> +EXPORT_SYMBOL_GPL(exynos4x12_of_data);
> 
>  /* pin banks of exynos5250 pin-controller 0 */ -static const struct
> samsung_pin_bank_data exynos5250_pin_banks0[] __initconst = {
> +static const struct samsung_pin_bank_data exynos5250_pin_banks0[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTG(8, 0x000, "gpa0", 0x00),
>  	EXYNOS_PIN_BANK_EINTG(6, 0x020, "gpa1", 0x04), @@ -489,7 +493,7 @@
> static const struct samsung_pin_bank_data exynos5250_pin_banks0[]
> __initconst =  };
> 
>  /* pin banks of exynos5250 pin-controller 1 */ -static const struct
> samsung_pin_bank_data exynos5250_pin_banks1[] __initconst = {
> +static const struct samsung_pin_bank_data exynos5250_pin_banks1[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTG(8, 0x000, "gpe0", 0x00),
>  	EXYNOS_PIN_BANK_EINTG(2, 0x020, "gpe1", 0x04), @@ -503,7 +507,7 @@
> static const struct samsung_pin_bank_data exynos5250_pin_banks1[]
> __initconst =  };
> 
>  /* pin banks of exynos5250 pin-controller 2 */ -static const struct
> samsung_pin_bank_data exynos5250_pin_banks2[] __initconst = {
> +static const struct samsung_pin_bank_data exynos5250_pin_banks2[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTG(8, 0x000, "gpv0", 0x00),
>  	EXYNOS_PIN_BANK_EINTG(8, 0x020, "gpv1", 0x04), @@ -513,7 +517,7 @@
> static const struct samsung_pin_bank_data exynos5250_pin_banks2[]
> __initconst =  };
> 
>  /* pin banks of exynos5250 pin-controller 3 */ -static const struct
> samsung_pin_bank_data exynos5250_pin_banks3[] __initconst = {
> +static const struct samsung_pin_bank_data exynos5250_pin_banks3[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTG(7, 0x000, "gpz", 0x00),  }; @@ -522,7 +526,7
> @@ static const struct samsung_pin_bank_data exynos5250_pin_banks3[]
> __initconst =
>   * Samsung pinctrl driver data for Exynos5250 SoC. Exynos5250 SoC
> includes
>   * four gpio/pin-mux/pinconfig controllers.
>   */
> -static const struct samsung_pin_ctrl exynos5250_pin_ctrl[] __initconst =
> {
> +static const struct samsung_pin_ctrl exynos5250_pin_ctrl[] = {
>  	{
>  		/* pin-controller instance 0 data */
>  		.pin_banks	= exynos5250_pin_banks0,
> @@ -558,13 +562,14 @@ static const struct samsung_pin_ctrl
> exynos5250_pin_ctrl[] __initconst = {
>  	},
>  };
> 
> -const struct samsung_pinctrl_of_match_data exynos5250_of_data __initconst
> = {
> +const struct samsung_pinctrl_of_match_data exynos5250_of_data = {
>  	.ctrl		= exynos5250_pin_ctrl,
>  	.num_ctrl	= ARRAY_SIZE(exynos5250_pin_ctrl),
>  };
> +EXPORT_SYMBOL_GPL(exynos5250_of_data);
> 
>  /* pin banks of exynos5260 pin-controller 0 */ -static const struct
> samsung_pin_bank_data exynos5260_pin_banks0[] __initconst = {
> +static const struct samsung_pin_bank_data exynos5260_pin_banks0[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTG(4, 0x000, "gpa0", 0x00),
>  	EXYNOS_PIN_BANK_EINTG(7, 0x020, "gpa1", 0x04), @@ -590,7 +595,7 @@
> static const struct samsung_pin_bank_data exynos5260_pin_banks0[]
> __initconst =  };
> 
>  /* pin banks of exynos5260 pin-controller 1 */ -static const struct
> samsung_pin_bank_data exynos5260_pin_banks1[] __initconst = {
> +static const struct samsung_pin_bank_data exynos5260_pin_banks1[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTG(7, 0x000, "gpc0", 0x00),
>  	EXYNOS_PIN_BANK_EINTG(6, 0x020, "gpc1", 0x04), @@ -600,7 +605,7 @@
> static const struct samsung_pin_bank_data exynos5260_pin_banks1[]
> __initconst =  };
> 
>  /* pin banks of exynos5260 pin-controller 2 */ -static const struct
> samsung_pin_bank_data exynos5260_pin_banks2[] __initconst = {
> +static const struct samsung_pin_bank_data exynos5260_pin_banks2[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTG(7, 0x000, "gpz0", 0x00),
>  	EXYNOS_PIN_BANK_EINTG(4, 0x020, "gpz1", 0x04), @@ -610,7 +615,7 @@
> static const struct samsung_pin_bank_data exynos5260_pin_banks2[]
> __initconst =
>   * Samsung pinctrl driver data for Exynos5260 SoC. Exynos5260 SoC
> includes
>   * three gpio/pin-mux/pinconfig controllers.
>   */
> -static const struct samsung_pin_ctrl exynos5260_pin_ctrl[] __initconst =
> {
> +static const struct samsung_pin_ctrl exynos5260_pin_ctrl[] = {
>  	{
>  		/* pin-controller instance 0 data */
>  		.pin_banks	= exynos5260_pin_banks0,
> @@ -636,13 +641,14 @@ static const struct samsung_pin_ctrl
> exynos5260_pin_ctrl[] __initconst = {
>  	},
>  };
> 
> -const struct samsung_pinctrl_of_match_data exynos5260_of_data __initconst
> = {
> +const struct samsung_pinctrl_of_match_data exynos5260_of_data = {
>  	.ctrl		= exynos5260_pin_ctrl,
>  	.num_ctrl	= ARRAY_SIZE(exynos5260_pin_ctrl),
>  };
> +EXPORT_SYMBOL_GPL(exynos5260_of_data);
> 
>  /* pin banks of exynos5410 pin-controller 0 */ -static const struct
> samsung_pin_bank_data exynos5410_pin_banks0[] __initconst = {
> +static const struct samsung_pin_bank_data exynos5410_pin_banks0[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTG(8, 0x000, "gpa0", 0x00),
>  	EXYNOS_PIN_BANK_EINTG(6, 0x020, "gpa1", 0x04), @@ -682,7 +688,7 @@
> static const struct samsung_pin_bank_data exynos5410_pin_banks0[]
> __initconst =  };
> 
>  /* pin banks of exynos5410 pin-controller 1 */ -static const struct
> samsung_pin_bank_data exynos5410_pin_banks1[] __initconst = {
> +static const struct samsung_pin_bank_data exynos5410_pin_banks1[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTG(5, 0x000, "gpj0", 0x00),
>  	EXYNOS_PIN_BANK_EINTG(8, 0x020, "gpj1", 0x04), @@ -696,7 +702,7 @@
> static const struct samsung_pin_bank_data exynos5410_pin_banks1[]
> __initconst =  };
> 
>  /* pin banks of exynos5410 pin-controller 2 */ -static const struct
> samsung_pin_bank_data exynos5410_pin_banks2[] __initconst = {
> +static const struct samsung_pin_bank_data exynos5410_pin_banks2[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTG(8, 0x000, "gpv0", 0x00),
>  	EXYNOS_PIN_BANK_EINTG(8, 0x020, "gpv1", 0x04), @@ -706,7 +712,7 @@
> static const struct samsung_pin_bank_data exynos5410_pin_banks2[]
> __initconst =  };
> 
>  /* pin banks of exynos5410 pin-controller 3 */ -static const struct
> samsung_pin_bank_data exynos5410_pin_banks3[] __initconst = {
> +static const struct samsung_pin_bank_data exynos5410_pin_banks3[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTG(7, 0x000, "gpz", 0x00),  }; @@ -715,7 +721,7
> @@ static const struct samsung_pin_bank_data exynos5410_pin_banks3[]
> __initconst =
>   * Samsung pinctrl driver data for Exynos5410 SoC. Exynos5410 SoC
> includes
>   * four gpio/pin-mux/pinconfig controllers.
>   */
> -static const struct samsung_pin_ctrl exynos5410_pin_ctrl[] __initconst =
> {
> +static const struct samsung_pin_ctrl exynos5410_pin_ctrl[] = {
>  	{
>  		/* pin-controller instance 0 data */
>  		.pin_banks	= exynos5410_pin_banks0,
> @@ -748,13 +754,14 @@ static const struct samsung_pin_ctrl
> exynos5410_pin_ctrl[] __initconst = {
>  	},
>  };
> 
> -const struct samsung_pinctrl_of_match_data exynos5410_of_data __initconst
> = {
> +const struct samsung_pinctrl_of_match_data exynos5410_of_data = {
>  	.ctrl		= exynos5410_pin_ctrl,
>  	.num_ctrl	= ARRAY_SIZE(exynos5410_pin_ctrl),
>  };
> +EXPORT_SYMBOL_GPL(exynos5410_of_data);
> 
>  /* pin banks of exynos5420 pin-controller 0 */ -static const struct
> samsung_pin_bank_data exynos5420_pin_banks0[] __initconst = {
> +static const struct samsung_pin_bank_data exynos5420_pin_banks0[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTG(8, 0x000, "gpy7", 0x00),
>  	EXYNOS_PIN_BANK_EINTW(8, 0xC00, "gpx0", 0x00), @@ -764,7 +771,7 @@
> static const struct samsung_pin_bank_data exynos5420_pin_banks0[]
> __initconst =  };
> 
>  /* pin banks of exynos5420 pin-controller 1 */ -static const struct
> samsung_pin_bank_data exynos5420_pin_banks1[] __initconst = {
> +static const struct samsung_pin_bank_data exynos5420_pin_banks1[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTG(8, 0x000, "gpc0", 0x00),
>  	EXYNOS_PIN_BANK_EINTG(8, 0x020, "gpc1", 0x04), @@ -782,7 +789,7 @@
> static const struct samsung_pin_bank_data exynos5420_pin_banks1[]
> __initconst =  };
> 
>  /* pin banks of exynos5420 pin-controller 2 */ -static const struct
> samsung_pin_bank_data exynos5420_pin_banks2[] __initconst = {
> +static const struct samsung_pin_bank_data exynos5420_pin_banks2[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTG(8, 0x000, "gpe0", 0x00),
>  	EXYNOS_PIN_BANK_EINTG(2, 0x020, "gpe1", 0x04), @@ -795,7 +802,7 @@
> static const struct samsung_pin_bank_data exynos5420_pin_banks2[]
> __initconst =  };
> 
>  /* pin banks of exynos5420 pin-controller 3 */ -static const struct
> samsung_pin_bank_data exynos5420_pin_banks3[] __initconst = {
> +static const struct samsung_pin_bank_data exynos5420_pin_banks3[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTG(8, 0x000, "gpa0", 0x00),
>  	EXYNOS_PIN_BANK_EINTG(6, 0x020, "gpa1", 0x04), @@ -809,7 +816,7 @@
> static const struct samsung_pin_bank_data exynos5420_pin_banks3[]
> __initconst =  };
> 
>  /* pin banks of exynos5420 pin-controller 4 */ -static const struct
> samsung_pin_bank_data exynos5420_pin_banks4[] __initconst = {
> +static const struct samsung_pin_bank_data exynos5420_pin_banks4[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTG(7, 0x000, "gpz", 0x00),  }; @@ -830,7 +837,7
> @@ static const u32 exynos5420_retention_regs[] = {
>  	EXYNOS5420_PAD_RET_DRAM_COREBLK_OPTION,
>  };
> 
> -static const struct samsung_retention_data exynos5420_retention_data
> __initconst = {
> +static const struct samsung_retention_data exynos5420_retention_data =
> +{
>  	.regs	 = exynos5420_retention_regs,
>  	.nr_regs = ARRAY_SIZE(exynos5420_retention_regs),
>  	.value	 = EXYNOS_WAKEUP_FROM_LOWPWR,
> @@ -842,7 +849,7 @@ static const struct samsung_retention_data
> exynos5420_retention_data __initconst
>   * Samsung pinctrl driver data for Exynos5420 SoC. Exynos5420 SoC
> includes
>   * four gpio/pin-mux/pinconfig controllers.
>   */
> -static const struct samsung_pin_ctrl exynos5420_pin_ctrl[] __initconst =
> {
> +static const struct samsung_pin_ctrl exynos5420_pin_ctrl[] = {
>  	{
>  		/* pin-controller instance 0 data */
>  		.pin_banks	= exynos5420_pin_banks0,
> @@ -887,7 +894,8 @@ static const struct samsung_pin_ctrl
> exynos5420_pin_ctrl[] __initconst = {
>  	},
>  };
> 
> -const struct samsung_pinctrl_of_match_data exynos5420_of_data __initconst
> = {
> +const struct samsung_pinctrl_of_match_data exynos5420_of_data = {
>  	.ctrl		= exynos5420_pin_ctrl,
>  	.num_ctrl	= ARRAY_SIZE(exynos5420_pin_ctrl),
>  };
> +EXPORT_SYMBOL_GPL(exynos5420_of_data);
> diff --git a/drivers/pinctrl/samsung/pinctrl-exynos-arm64.c
> b/drivers/pinctrl/samsung/pinctrl-exynos-arm64.c
> index fe5f6046fbd5..9fb658c65b96 100644
> --- a/drivers/pinctrl/samsung/pinctrl-exynos-arm64.c
> +++ b/drivers/pinctrl/samsung/pinctrl-exynos-arm64.c
> @@ -62,7 +62,7 @@ static const struct samsung_pin_bank_type
> exynos850_bank_type_alive = {  static atomic_t
> exynos_shared_retention_refcnt;
> 
>  /* pin banks of exynos5433 pin-controller - ALIVE */ -static const struct
> samsung_pin_bank_data exynos5433_pin_banks0[] __initconst = {
> +static const struct samsung_pin_bank_data exynos5433_pin_banks0[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS5433_PIN_BANK_EINTW(8, 0x000, "gpa0", 0x00),
>  	EXYNOS5433_PIN_BANK_EINTW(8, 0x020, "gpa1", 0x04), @@ -76,32 +76,32
> @@ static const struct samsung_pin_bank_data exynos5433_pin_banks0[]
> __initconst =  };
> 
>  /* pin banks of exynos5433 pin-controller - AUD */ -static const struct
> samsung_pin_bank_data exynos5433_pin_banks1[] __initconst = {
> +static const struct samsung_pin_bank_data exynos5433_pin_banks1[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS5433_PIN_BANK_EINTG(7, 0x000, "gpz0", 0x00),
>  	EXYNOS5433_PIN_BANK_EINTG(4, 0x020, "gpz1", 0x04),  };
> 
>  /* pin banks of exynos5433 pin-controller - CPIF */ -static const struct
> samsung_pin_bank_data exynos5433_pin_banks2[] __initconst = {
> +static const struct samsung_pin_bank_data exynos5433_pin_banks2[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS5433_PIN_BANK_EINTG(2, 0x000, "gpv6", 0x00),  };
> 
>  /* pin banks of exynos5433 pin-controller - eSE */ -static const struct
> samsung_pin_bank_data exynos5433_pin_banks3[] __initconst = {
> +static const struct samsung_pin_bank_data exynos5433_pin_banks3[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS5433_PIN_BANK_EINTG(3, 0x000, "gpj2", 0x00),  };
> 
>  /* pin banks of exynos5433 pin-controller - FINGER */ -static const
> struct samsung_pin_bank_data exynos5433_pin_banks4[] __initconst = {
> +static const struct samsung_pin_bank_data exynos5433_pin_banks4[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS5433_PIN_BANK_EINTG(4, 0x000, "gpd5", 0x00),  };
> 
>  /* pin banks of exynos5433 pin-controller - FSYS */ -static const struct
> samsung_pin_bank_data exynos5433_pin_banks5[] __initconst = {
> +static const struct samsung_pin_bank_data exynos5433_pin_banks5[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS5433_PIN_BANK_EINTG(6, 0x000, "gph1", 0x00),
>  	EXYNOS5433_PIN_BANK_EINTG(7, 0x020, "gpr4", 0x04), @@ -112,19
> +112,19 @@ static const struct samsung_pin_bank_data
> exynos5433_pin_banks5[] __initconst =  };
> 
>  /* pin banks of exynos5433 pin-controller - IMEM */ -static const struct
> samsung_pin_bank_data exynos5433_pin_banks6[] __initconst = {
> +static const struct samsung_pin_bank_data exynos5433_pin_banks6[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS5433_PIN_BANK_EINTG(8, 0x000, "gpf0", 0x00),  };
> 
>  /* pin banks of exynos5433 pin-controller - NFC */ -static const struct
> samsung_pin_bank_data exynos5433_pin_banks7[] __initconst = {
> +static const struct samsung_pin_bank_data exynos5433_pin_banks7[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS5433_PIN_BANK_EINTG(3, 0x000, "gpj0", 0x00),  };
> 
>  /* pin banks of exynos5433 pin-controller - PERIC */ -static const struct
> samsung_pin_bank_data exynos5433_pin_banks8[] __initconst = {
> +static const struct samsung_pin_bank_data exynos5433_pin_banks8[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS5433_PIN_BANK_EINTG(6, 0x000, "gpv7", 0x00),
>  	EXYNOS5433_PIN_BANK_EINTG(5, 0x020, "gpb0", 0x04), @@ -146,7 +146,7
> @@ static const struct samsung_pin_bank_data exynos5433_pin_banks8[]
> __initconst =  };
> 
>  /* pin banks of exynos5433 pin-controller - TOUCH */ -static const struct
> samsung_pin_bank_data exynos5433_pin_banks9[] __initconst = {
> +static const struct samsung_pin_bank_data exynos5433_pin_banks9[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS5433_PIN_BANK_EINTG(3, 0x000, "gpj1", 0x00),  }; @@ -165,7
> +165,7 @@ static const u32 exynos5433_retention_regs[] = {
>  	EXYNOS5433_PAD_RETENTION_FSYSGENIO_OPTION,
>  };
> 
> -static const struct samsung_retention_data exynos5433_retention_data
> __initconst = {
> +static const struct samsung_retention_data exynos5433_retention_data =
> +{
>  	.regs	 = exynos5433_retention_regs,
>  	.nr_regs = ARRAY_SIZE(exynos5433_retention_regs),
>  	.value	 = EXYNOS_WAKEUP_FROM_LOWPWR,
> @@ -178,7 +178,7 @@ static const u32 exynos5433_audio_retention_regs[] = {
>  	EXYNOS5433_PAD_RETENTION_AUD_OPTION,
>  };
> 
> -static const struct samsung_retention_data
> exynos5433_audio_retention_data __initconst = {
> +static const struct samsung_retention_data
> +exynos5433_audio_retention_data = {
>  	.regs	 = exynos5433_audio_retention_regs,
>  	.nr_regs = ARRAY_SIZE(exynos5433_audio_retention_regs),
>  	.value	 = EXYNOS_WAKEUP_FROM_LOWPWR,
> @@ -192,7 +192,7 @@ static const u32 exynos5433_fsys_retention_regs[] = {
>  	EXYNOS5433_PAD_RETENTION_MMC2_OPTION,
>  };
> 
> -static const struct samsung_retention_data exynos5433_fsys_retention_data
> __initconst = {
> +static const struct samsung_retention_data
> +exynos5433_fsys_retention_data = {
>  	.regs	 = exynos5433_fsys_retention_regs,
>  	.nr_regs = ARRAY_SIZE(exynos5433_fsys_retention_regs),
>  	.value	 = EXYNOS_WAKEUP_FROM_LOWPWR,
> @@ -203,7 +203,7 @@ static const struct samsung_retention_data
> exynos5433_fsys_retention_data __init
>   * Samsung pinctrl driver data for Exynos5433 SoC. Exynos5433 SoC
> includes
>   * ten gpio/pin-mux/pinconfig controllers.
>   */
> -static const struct samsung_pin_ctrl exynos5433_pin_ctrl[] __initconst =
> {
> +static const struct samsung_pin_ctrl exynos5433_pin_ctrl[] = {
>  	{
>  		/* pin-controller instance 0 data */
>  		.pin_banks	= exynos5433_pin_banks0,
> @@ -288,13 +288,14 @@ static const struct samsung_pin_ctrl
> exynos5433_pin_ctrl[] __initconst = {
>  	},
>  };
> 
> -const struct samsung_pinctrl_of_match_data exynos5433_of_data __initconst
> = {
> +const struct samsung_pinctrl_of_match_data exynos5433_of_data = {
>  	.ctrl		= exynos5433_pin_ctrl,
>  	.num_ctrl	= ARRAY_SIZE(exynos5433_pin_ctrl),
>  };
> +EXPORT_SYMBOL_GPL(exynos5433_of_data);
> 
>  /* pin banks of exynos7 pin-controller - ALIVE */ -static const struct
> samsung_pin_bank_data exynos7_pin_banks0[] __initconst = {
> +static const struct samsung_pin_bank_data exynos7_pin_banks0[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTW(8, 0x000, "gpa0", 0x00),
>  	EXYNOS_PIN_BANK_EINTW(8, 0x020, "gpa1", 0x04), @@ -303,7 +304,7 @@
> static const struct samsung_pin_bank_data exynos7_pin_banks0[] __initconst
> = {  };
> 
>  /* pin banks of exynos7 pin-controller - BUS0 */ -static const struct
> samsung_pin_bank_data exynos7_pin_banks1[] __initconst = {
> +static const struct samsung_pin_bank_data exynos7_pin_banks1[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTG(5, 0x000, "gpb0", 0x00),
>  	EXYNOS_PIN_BANK_EINTG(8, 0x020, "gpc0", 0x04), @@ -323,37 +324,37
> @@ static const struct samsung_pin_bank_data exynos7_pin_banks1[]
> __initconst = {  };
> 
>  /* pin banks of exynos7 pin-controller - NFC */ -static const struct
> samsung_pin_bank_data exynos7_pin_banks2[] __initconst = {
> +static const struct samsung_pin_bank_data exynos7_pin_banks2[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTG(3, 0x000, "gpj0", 0x00),  };
> 
>  /* pin banks of exynos7 pin-controller - TOUCH */ -static const struct
> samsung_pin_bank_data exynos7_pin_banks3[] __initconst = {
> +static const struct samsung_pin_bank_data exynos7_pin_banks3[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTG(3, 0x000, "gpj1", 0x00),  };
> 
>  /* pin banks of exynos7 pin-controller - FF */ -static const struct
> samsung_pin_bank_data exynos7_pin_banks4[] __initconst = {
> +static const struct samsung_pin_bank_data exynos7_pin_banks4[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTG(4, 0x000, "gpg4", 0x00),  };
> 
>  /* pin banks of exynos7 pin-controller - ESE */ -static const struct
> samsung_pin_bank_data exynos7_pin_banks5[] __initconst = {
> +static const struct samsung_pin_bank_data exynos7_pin_banks5[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTG(5, 0x000, "gpv7", 0x00),  };
> 
>  /* pin banks of exynos7 pin-controller - FSYS0 */ -static const struct
> samsung_pin_bank_data exynos7_pin_banks6[] __initconst = {
> +static const struct samsung_pin_bank_data exynos7_pin_banks6[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTG(7, 0x000, "gpr4", 0x00),  };
> 
>  /* pin banks of exynos7 pin-controller - FSYS1 */ -static const struct
> samsung_pin_bank_data exynos7_pin_banks7[] __initconst = {
> +static const struct samsung_pin_bank_data exynos7_pin_banks7[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTG(4, 0x000, "gpr0", 0x00),
>  	EXYNOS_PIN_BANK_EINTG(8, 0x020, "gpr1", 0x04), @@ -362,7 +363,7 @@
> static const struct samsung_pin_bank_data exynos7_pin_banks7[] __initconst
> = {  };
> 
>  /* pin banks of exynos7 pin-controller - BUS1 */ -static const struct
> samsung_pin_bank_data exynos7_pin_banks8[] __initconst = {
> +static const struct samsung_pin_bank_data exynos7_pin_banks8[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTG(8, 0x020, "gpf0", 0x00),
>  	EXYNOS_PIN_BANK_EINTG(8, 0x040, "gpf1", 0x04), @@ -376,13 +377,13
> @@ static const struct samsung_pin_bank_data exynos7_pin_banks8[]
> __initconst = {
>  	EXYNOS_PIN_BANK_EINTG(3, 0x140, "gpv6", 0x24),  };
> 
> -static const struct samsung_pin_bank_data exynos7_pin_banks9[]
> __initconst = {
> +static const struct samsung_pin_bank_data exynos7_pin_banks9[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS_PIN_BANK_EINTG(7, 0x000, "gpz0", 0x00),
>  	EXYNOS_PIN_BANK_EINTG(4, 0x020, "gpz1", 0x04),  };
> 
> -static const struct samsung_pin_ctrl exynos7_pin_ctrl[] __initconst = {
> +static const struct samsung_pin_ctrl exynos7_pin_ctrl[] = {
>  	{
>  		/* pin-controller instance 0 Alive data */
>  		.pin_banks	= exynos7_pin_banks0,
> @@ -436,13 +437,14 @@ static const struct samsung_pin_ctrl
> exynos7_pin_ctrl[] __initconst = {
>  	},
>  };
> 
> -const struct samsung_pinctrl_of_match_data exynos7_of_data __initconst =
> {
> +const struct samsung_pinctrl_of_match_data exynos7_of_data = {
>  	.ctrl		= exynos7_pin_ctrl,
>  	.num_ctrl	= ARRAY_SIZE(exynos7_pin_ctrl),
>  };
> +EXPORT_SYMBOL_GPL(exynos7_of_data);
> 
>  /* pin banks of exynos850 pin-controller 0 (ALIVE) */ -static const
> struct samsung_pin_bank_data exynos850_pin_banks0[] __initconst = {
> +static const struct samsung_pin_bank_data exynos850_pin_banks0[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS850_PIN_BANK_EINTW(8, 0x000, "gpa0", 0x00),
>  	EXYNOS850_PIN_BANK_EINTW(8, 0x020, "gpa1", 0x04), @@ -453,7 +455,7
> @@ static const struct samsung_pin_bank_data exynos850_pin_banks0[]
> __initconst = {  };
> 
>  /* pin banks of exynos850 pin-controller 1 (CMGP) */ -static const struct
> samsung_pin_bank_data exynos850_pin_banks1[] __initconst = {
> +static const struct samsung_pin_bank_data exynos850_pin_banks1[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS850_PIN_BANK_EINTW(1, 0x000, "gpm0", 0x00),
>  	EXYNOS850_PIN_BANK_EINTW(1, 0x020, "gpm1", 0x04), @@ -466,27
> +468,27 @@ static const struct samsung_pin_bank_data exynos850_pin_banks1[]
> __initconst = {  };
> 
>  /* pin banks of exynos850 pin-controller 2 (AUD) */ -static const struct
> samsung_pin_bank_data exynos850_pin_banks2[] __initconst = {
> +static const struct samsung_pin_bank_data exynos850_pin_banks2[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS850_PIN_BANK_EINTG(5, 0x000, "gpb0", 0x00),
>  	EXYNOS850_PIN_BANK_EINTG(5, 0x020, "gpb1", 0x04),  };
> 
>  /* pin banks of exynos850 pin-controller 3 (HSI) */ -static const struct
> samsung_pin_bank_data exynos850_pin_banks3[] __initconst = {
> +static const struct samsung_pin_bank_data exynos850_pin_banks3[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS850_PIN_BANK_EINTG(6, 0x000, "gpf2", 0x00),  };
> 
>  /* pin banks of exynos850 pin-controller 4 (CORE) */ -static const struct
> samsung_pin_bank_data exynos850_pin_banks4[] __initconst = {
> +static const struct samsung_pin_bank_data exynos850_pin_banks4[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS850_PIN_BANK_EINTG(4, 0x000, "gpf0", 0x00),
>  	EXYNOS850_PIN_BANK_EINTG(8, 0x020, "gpf1", 0x04),  };
> 
>  /* pin banks of exynos850 pin-controller 5 (PERI) */ -static const struct
> samsung_pin_bank_data exynos850_pin_banks5[] __initconst = {
> +static const struct samsung_pin_bank_data exynos850_pin_banks5[] = {
>  	/* Must start with EINTG banks, ordered by EINT group number. */
>  	EXYNOS850_PIN_BANK_EINTG(2, 0x000, "gpg0", 0x00),
>  	EXYNOS850_PIN_BANK_EINTG(6, 0x020, "gpp0", 0x04), @@ -499,7 +501,7
> @@ static const struct samsung_pin_bank_data exynos850_pin_banks5[]
> __initconst = {
>  	EXYNOS850_PIN_BANK_EINTG(6, 0x100, "gpc1", 0x20),  };
> 
> -static const struct samsung_pin_ctrl exynos850_pin_ctrl[] __initconst = {
> +static const struct samsung_pin_ctrl exynos850_pin_ctrl[] = {
>  	{
>  		/* pin-controller instance 0 ALIVE data */
>  		.pin_banks	= exynos850_pin_banks0,
> @@ -534,7 +536,8 @@ static const struct samsung_pin_ctrl
> exynos850_pin_ctrl[] __initconst = {
>  	},
>  };
> 
> -const struct samsung_pinctrl_of_match_data exynos850_of_data __initconst
> = {
> +const struct samsung_pinctrl_of_match_data exynos850_of_data = {
>  	.ctrl		= exynos850_pin_ctrl,
>  	.num_ctrl	= ARRAY_SIZE(exynos850_pin_ctrl),
>  };
> +EXPORT_SYMBOL_GPL(exynos850_of_data);
> diff --git a/drivers/pinctrl/samsung/pinctrl-exynos.c
> b/drivers/pinctrl/samsung/pinctrl-exynos.c
> index 0489c899b401..628c6e94d08c 100644
> --- a/drivers/pinctrl/samsung/pinctrl-exynos.c
> +++ b/drivers/pinctrl/samsung/pinctrl-exynos.c
> @@ -20,6 +20,7 @@
>  #include <linux/irqchip/chained_irq.h>
>  #include <linux/of.h>
>  #include <linux/of_irq.h>
> +#include <linux/module.h>
>  #include <linux/slab.h>
>  #include <linux/spinlock.h>
>  #include <linux/regmap.h>
> @@ -207,7 +208,7 @@ static void exynos_irq_release_resources(struct
> irq_data *irqd)
>  /*
>   * irq_chip for gpio interrupts.
>   */
> -static const struct exynos_irq_chip exynos_gpio_irq_chip __initconst = {
> +static const struct exynos_irq_chip exynos_gpio_irq_chip = {
>  	.chip = {
>  		.name = "exynos_gpio_irq_chip",
>  		.irq_unmask = exynos_irq_unmask,
> @@ -275,7 +276,7 @@ struct exynos_eint_gpio_save {
>   * exynos_eint_gpio_init() - setup handling of external gpio interrupts.
>   * @d: driver data of samsung pinctrl driver.
>   */
> -__init int exynos_eint_gpio_init(struct samsung_pinctrl_drv_data *d)
> +int exynos_eint_gpio_init(struct samsung_pinctrl_drv_data *d)
>  {
>  	struct samsung_pin_bank *bank;
>  	struct device *dev = d->dev;
> @@ -399,7 +400,7 @@ static u32 eint_wake_mask_value =
> EXYNOS_EINT_WAKEUP_MASK_DISABLED;
>  /*
>   * irq_chip for wakeup interrupts
>   */
> -static const struct exynos_irq_chip s5pv210_wkup_irq_chip __initconst = {
> +static const struct exynos_irq_chip s5pv210_wkup_irq_chip = {
>  	.chip = {
>  		.name = "s5pv210_wkup_irq_chip",
>  		.irq_unmask = exynos_irq_unmask,
> @@ -419,7 +420,7 @@ static const struct exynos_irq_chip
> s5pv210_wkup_irq_chip __initconst = {
>  	.set_eint_wakeup_mask = s5pv210_pinctrl_set_eint_wakeup_mask,
>  };
> 
> -static const struct exynos_irq_chip exynos4210_wkup_irq_chip __initconst
> = {
> +static const struct exynos_irq_chip exynos4210_wkup_irq_chip = {
>  	.chip = {
>  		.name = "exynos4210_wkup_irq_chip",
>  		.irq_unmask = exynos_irq_unmask,
> @@ -438,7 +439,7 @@ static const struct exynos_irq_chip
> exynos4210_wkup_irq_chip __initconst = {
>  	.set_eint_wakeup_mask = exynos_pinctrl_set_eint_wakeup_mask,
>  };
> 
> -static const struct exynos_irq_chip exynos7_wkup_irq_chip __initconst = {
> +static const struct exynos_irq_chip exynos7_wkup_irq_chip = {
>  	.chip = {
>  		.name = "exynos7_wkup_irq_chip",
>  		.irq_unmask = exynos_irq_unmask,
> @@ -521,7 +522,7 @@ static void exynos_irq_demux_eint16_31(struct irq_desc
> *desc)
>   * exynos_eint_wkup_init() - setup handling of external wakeup interrupts.
>   * @d: driver data of samsung pinctrl driver.
>   */
> -__init int exynos_eint_wkup_init(struct samsung_pinctrl_drv_data *d)
> +int exynos_eint_wkup_init(struct samsung_pinctrl_drv_data *d)
>  {
>  	struct device *dev = d->dev;
>  	struct device_node *wkup_np = NULL;
> @@ -760,3 +761,7 @@ exynos_retention_init(struct samsung_pinctrl_drv_data
> *drvdata,
> 
>  	return ctrl;
>  }
> +
> +MODULE_DESCRIPTION("Pinctrl common driver for Exynos, S3C24XX, and
> +S3C64XX SoCs"); MODULE_AUTHOR("Thomas Abraham
> +<thomas.ab@samsung.com>"); MODULE_LICENSE("GPL v2");
> diff --git a/drivers/pinctrl/samsung/pinctrl-samsung.c
> b/drivers/pinctrl/samsung/pinctrl-samsung.c
> index 2a0fc63516f1..7a5f1363d0d1 100644
> --- a/drivers/pinctrl/samsung/pinctrl-samsung.c
> +++ b/drivers/pinctrl/samsung/pinctrl-samsung.c
> @@ -18,6 +18,7 @@
>  #include <linux/init.h>
>  #include <linux/platform_device.h>
>  #include <linux/io.h>
> +#include <linux/module.h>
>  #include <linux/slab.h>
>  #include <linux/err.h>
>  #include <linux/gpio/driver.h>
> @@ -1299,8 +1300,8 @@ static struct platform_driver samsung_pinctrl_driver
> = {
>  	},
>  };
> 
> -static int __init samsung_pinctrl_drv_register(void)
> -{
> -	return platform_driver_register(&samsung_pinctrl_driver);
> -}
> -postcore_initcall(samsung_pinctrl_drv_register);
> +module_platform_driver(samsung_pinctrl_driver);

To keep previous initcall order, please do not use module_platform_driver macro.

Best Regards,
Chanho Park


  reply	other threads:[~2021-09-29  2:01 UTC|newest]

Thread overview: 83+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-28 23:56 [PATCH v2 00/12] arm64: Kconfig: Update ARCH_EXYNOS select configs Will McVicker
2021-09-28 23:56 ` [PATCH v2 01/12] arm64: don't have ARCH_EXYNOS select EXYNOS_CHIPID Will McVicker
2021-09-29 13:58   ` (subset) " Krzysztof Kozlowski
2021-09-29 14:00   ` Krzysztof Kozlowski
2021-09-28 23:56 ` [PATCH v2 02/12] timekeeping: add API for getting timekeeping_suspended Will McVicker
2021-09-29  3:42   ` John Stultz
2021-09-29 20:01     ` Will McVicker
2021-09-29 20:46       ` John Stultz
2021-09-30 18:31         ` Will McVicker
2021-09-28 23:56 ` [PATCH v2 03/12] clk: samsung: add support for CPU clocks Will McVicker
2021-09-28 23:56 ` [PATCH v2 04/12] clk: samsung: exynos5433: update apollo and atlas clock probing Will McVicker
2021-09-28 23:56 ` [PATCH v2 05/12] clk: export __clk_lookup Will McVicker
2021-10-08  4:31   ` Stephen Boyd
2021-09-28 23:56 ` [PATCH v2 06/12] clk: samsung: modularize exynos arm64 clk drivers Will McVicker
2021-09-28 23:56 ` [PATCH v2 07/12] clk: samsung: set exynos arm64 clk driver as tristate Will McVicker
2021-09-29 13:09   ` Krzysztof Kozlowski
2021-09-28 23:56 ` [PATCH v2 08/12] pinctrl: samsung: modularize the ARM and ARM64 pinctrls Will McVicker
2021-09-29  2:01   ` Chanho Park [this message]
2021-09-28 23:56 ` [PATCH v2 09/12] pinctrl: samsung: set PINCTRL_EXYNOS and PINCTRL_SAMSUNG as tristate Will McVicker
2021-09-28 23:56 ` [PATCH v2 10/12] soc: samsung: pmu: modularize the Exynos ARMv8 PMU driver Will McVicker
2021-09-29 13:11   ` Krzysztof Kozlowski
2021-09-28 23:56 ` [PATCH v2 11/12] soc: samsung: pm_domains: modularize EXYNOS_PM_DOMAINS Will McVicker
2021-09-29 13:36   ` Krzysztof Kozlowski
2021-09-28 23:56 ` [PATCH v2 12/12] ARM: rtc: remove HAVE_S3C_RTC in favor of direct dependencies Will McVicker
2021-09-29 11:52   ` Alexandre Belloni
2021-09-29 13:02 ` [PATCH v2 00/12] arm64: Kconfig: Update ARCH_EXYNOS select configs Krzysztof Kozlowski
2021-09-29 19:48   ` Will McVicker
2021-09-30  6:14     ` Krzysztof Kozlowski
2021-09-30  9:01       ` Arnd Bergmann
2021-09-30  9:30         ` Lee Jones
2021-09-30 10:33           ` Krzysztof Kozlowski
2021-09-30 12:34             ` Lee Jones
2021-09-30 12:38               ` Krzysztof Kozlowski
2021-09-30 10:05         ` Geert Uytterhoeven
2021-09-30  9:23       ` Lee Jones
2021-09-30 10:17         ` Geert Uytterhoeven
2021-09-30 10:56           ` Lee Jones
2021-09-30 11:25             ` Geert Uytterhoeven
2021-09-30 12:08               ` Lee Jones
2021-09-30 16:09                 ` Geert Uytterhoeven
2021-09-30 10:52         ` Krzysztof Kozlowski
2021-09-30 12:32           ` Lee Jones
2021-09-30 11:01         ` Tomasz Figa
2021-09-30 11:27           ` Geert Uytterhoeven
2021-09-30 11:51           ` Lee Jones
2021-09-30 12:10             ` Tomasz Figa
2021-09-30 12:15               ` Krzysztof Kozlowski
2021-09-30 12:45               ` Lee Jones
2021-10-01  4:01               ` Christoph Hellwig
2021-10-01  4:52                 ` Saravana Kannan
2021-10-01  4:55                   ` Christoph Hellwig
2021-09-30 12:21         ` Krzysztof Kozlowski
2021-09-30 12:39           ` Lee Jones
2021-09-30 13:08             ` Krzysztof Kozlowski
2021-09-30 13:29               ` Lee Jones
2021-09-30 16:12                 ` Geert Uytterhoeven
2021-09-30 16:21                   ` Lee Jones
2021-09-30 16:26                     ` Geert Uytterhoeven
2021-09-30 18:02                       ` Will McVicker
2021-10-01  4:04             ` Christoph Hellwig
2021-10-01  4:52     ` Olof Johansson
2021-10-01  5:23       ` Saravana Kannan
2021-10-01  5:35         ` Olof Johansson
2021-10-01  5:59           ` Will McVicker
2021-10-01  8:01             ` Krzysztof Kozlowski
2021-10-01  6:02           ` Saravana Kannan
2021-10-01  6:27             ` Olof Johansson
2021-10-01  6:30               ` Olof Johansson
2021-10-01 12:00             ` Arnd Bergmann
2021-10-01 12:31               ` Lee Jones
2021-10-01 15:43                 ` Olof Johansson
2021-10-01 11:38           ` Linus Walleij
2021-10-01 11:59           ` Geert Uytterhoeven
2021-10-01 15:59             ` Olof Johansson
2021-10-01 16:51               ` Will McVicker
2021-10-01 17:15                 ` Olof Johansson
2021-10-01 17:48                   ` Will McVicker
2021-10-01  8:19         ` Geert Uytterhoeven
2021-10-01  9:00           ` Arnd Bergmann
2021-10-01 15:27             ` Olof Johansson
2021-10-01 19:26               ` Saravana Kannan
2021-10-02  1:47                 ` Tomasz Figa
2021-10-02 21:03                 ` Olof Johansson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='005501d7b4d5$e60f38f0$b22daad0$@samsung.com' \
    --to=chanho61.park@samsung.com \
    --cc=a.zummo@towertech.it \
    --cc=alexandre.belloni@bootlin.com \
    --cc=catalin.marinas@arm.com \
    --cc=cw00.choi@samsung.com \
    --cc=geert@linux-m68k.org \
    --cc=john.stultz@linaro.org \
    --cc=kernel-team@android.com \
    --cc=krzysztof.kozlowski@canonical.com \
    --cc=lee.jones@linaro.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rtc@vger.kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=mturquette@baylibre.com \
    --cc=s.nawrocki@samsung.com \
    --cc=saravanak@google.com \
    --cc=sboyd@kernel.org \
    --cc=tglx@linutronix.de \
    --cc=tomasz.figa@gmail.com \
    --cc=will@kernel.org \
    --cc=willmcvicker@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).