Commit 6166174a authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski
Browse files

soc: samsung: exynos-chipid: correct helpers __init annotation



After converting to builtin driver, the probe function should not call
__init functions anymore:

  >> WARNING: modpost: vmlinux.o(.text+0x8884d4):
  Section mismatch in reference from the function exynos_chipid_probe() to the function .init.text:product_id_to_soc_id()

Reported-by: default avatarkernel test robot <lkp@intel.com>
Fixes: 352bfbb3 ("soc: samsung: exynos-chipid: convert to driver and merge exynos-asv")
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20210105174440.120041-1-krzk@kernel.org
parent 352bfbb3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ static const struct exynos_soc_id {
	{ "EXYNOS7420", 0xE7420000 },
};

static const char * __init product_id_to_soc_id(unsigned int product_id)
static const char *product_id_to_soc_id(unsigned int product_id)
{
	int i;