]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00223103 ESAI ASRC: clean build warning
authorChen Liangjun <b36089@freescale.com>
Wed, 5 Sep 2012 08:45:18 +0000 (16:45 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:23 +0000 (08:35 +0200)
BUILD WARNING:
WARNING: arch/arm/mach-mx6/built-in.o(.data+0x7e44): Section mismatch in
reference from the variable sab_audio_data to the (unknown reference)
.init.rodata:(unknown) The variable sab_audio_data references the
(unknown reference) __initconst (unknown) If the reference is valid then
annotate the variable with __init* or __refdata (see linux/init.h) or
name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

In this patch, remove esai_p2p struct with init attribute.

Signed-off-by: Chen Liangjun <b36089@freescale.com>
arch/arm/mach-mx6/board-mx6q_arm2.c

index 29911a232de2f500d928ebff1cec40fe651b69c3..81612e5dfe1d6a9132bb8750a052acf310daffaf 100644 (file)
@@ -1562,7 +1562,7 @@ static const struct pm_platform_data mx6_arm2_pm_data __initconst = {
        .suspend_exit   = arm2_suspend_exit,
 };
 
-static const struct asrc_p2p_params esai_p2p __initconst = {
+static const struct asrc_p2p_params esai_p2p = {
        .p2p_rate = 44100,
        .p2p_width = ASRC_WIDTH_24_BIT,
 };