[COMMON] media: smfc: fix section mismatch
authorCho KyongHo <pullip.cho@samsung.com>
Tue, 18 Aug 2015 16:07:22 +0000 (01:07 +0900)
committerSeungchul Kim <sc377.kim@samsung.com>
Mon, 28 May 2018 05:31:14 +0000 (14:31 +0900)
This fixes the following section mismatch problem:

WARNING: drivers/media/platform/exynos/built-in.o(.text+0x2c96c):
Section mismatch in reference from the function
exynos_smfc_probe() to the variable .init.rodata:exynos_smfc_match
The function exynos_smfc_probe() references the variable
__initconst exynos_smfc_match. This is often because
exynos_smfc_probe lacks a __initconst annotation or the annotation
of exynos_smfc_match is wrong.

Change-Id: Id3498e6d5ff70ce8bc96bb22250776a46092b382
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
drivers/media/platform/exynos/smfc/smfc.c

index d0de3d6c22a283dcef25816ce4fe9c87c7c82cf4..8f2ed0be3f5f360093eb4419b538ab33c8ae7da1 100644 (file)
@@ -772,7 +772,7 @@ static const struct smfc_device_data smfc_3475_data = {
        .burstlenth_bits = 5, /* 32 bytes: 2 bursts */
 };
 
-static const struct of_device_id exynos_smfc_match[] __initconst = {
+static const struct of_device_id exynos_smfc_match[] = {
        {
                .compatible = "samsung,exynos-jpeg",
                .data = &smfc_3475_data,
@@ -938,7 +938,7 @@ static const struct dev_pm_ops exynos_smfc_pm_ops = {
        SET_RUNTIME_PM_OPS(NULL, smfc_runtime_resume, smfc_runtime_suspend)
 };
 
-static struct platform_driver exynos_smfc_driver __refdata = {
+static struct platform_driver exynos_smfc_driver = {
        .probe          = exynos_smfc_probe,
        .remove         = exynos_smfc_remove,
        .driver = {