From: Hosung Kim Date: Fri, 19 Jun 2015 12:58:42 +0000 (+0900) Subject: [COMMON] soc: samsung: fix to declare platform driver for exynos-chipid X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c7a5de0f9f6de5eab2127f15f756b89a15093fa9;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [COMMON] soc: samsung: fix to declare platform driver for exynos-chipid This commit fixes that exynos-chipid declared the platform driver structure with __initdata section. The platform driver is used always seaching by kernel platform driver framework. If it is declared with __initdata, it's region is released by kernel after booting. Change-Id: I5776ff20d877a021c42f01d05d4cb2a1a6a24939 Signed-off-by: Hosung Kim --- diff --git a/drivers/soc/samsung/exynos-chipid.c b/drivers/soc/samsung/exynos-chipid.c index 8968f83fe84f..ee5dbc0fa8de 100644 --- a/drivers/soc/samsung/exynos-chipid.c +++ b/drivers/soc/samsung/exynos-chipid.c @@ -152,7 +152,7 @@ free_soc: return -EINVAL; } -static struct platform_driver exynos_chipid_driver __initdata = { +static struct platform_driver exynos_chipid_driver __refdata = { .driver = { .name = "exynos-chipid", .of_match_table = of_exynos_chipid_ids,