From c7a5de0f9f6de5eab2127f15f756b89a15093fa9 Mon Sep 17 00:00:00 2001 From: Hosung Kim Date: Fri, 19 Jun 2015 21:58:42 +0900 Subject: [PATCH] [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 --- drivers/soc/samsung/exynos-chipid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.20.1