[COMMON] soc: samsung: fix to declare platform driver for exynos-chipid
authorHosung Kim <hosung0.kim@samsung.com>
Fri, 19 Jun 2015 12:58:42 +0000 (21:58 +0900)
committerJaehyoung Choi <jkkkkk.choi@samsung.com>
Wed, 2 May 2018 01:52:21 +0000 (10:52 +0900)
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 <hosung0.kim@samsung.com>
drivers/soc/samsung/exynos-chipid.c

index 8968f83fe84fba9e80d9bbb1e9c6c17005a22ae1..ee5dbc0fa8de6fdf5caf1c7a976ef9f969a3db35 100644 (file)
@@ -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,