From: Cho KyongHo Date: Tue, 18 Aug 2015 16:07:22 +0000 (+0900) Subject: [COMMON] media: smfc: fix section mismatch X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=29fce1890b4a331c433a12f31468609e2e0aa12c;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] media: smfc: fix section mismatch 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 --- diff --git a/drivers/media/platform/exynos/smfc/smfc.c b/drivers/media/platform/exynos/smfc/smfc.c index d0de3d6c22a2..8f2ed0be3f5f 100644 --- a/drivers/media/platform/exynos/smfc/smfc.c +++ b/drivers/media/platform/exynos/smfc/smfc.c @@ -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 = {