aboutsummaryrefslogtreecommitdiff
path: root/arch/sparc/kernel/power.c
diff options
context:
space:
mode:
authorGravatar David S. Miller <davem@davemloft.net> 2011-03-30 17:37:56 -0700
committerGravatar David S. Miller <davem@davemloft.net> 2011-03-30 17:37:56 -0700
commit3628aa0657e7bb3548a25fa3ea47510327d35efc (patch)
tree9735e85a7c184ba242597c97f9f3208bc4ff4690 /arch/sparc/kernel/power.c
parentsparc32,leon: Fixed APBUART frequency detection (diff)
downloadlinux-3628aa0657e7bb3548a25fa3ea47510327d35efc.tar.gz
linux-3628aa0657e7bb3548a25fa3ea47510327d35efc.tar.bz2
linux-3628aa0657e7bb3548a25fa3ea47510327d35efc.zip
sparc64: Fix section mis-match errors.
Fix all of the problems spotted by CONFIG_DEBUG_SECTION_MISMATCH under arch/sparc during a 64-bit defconfig build. They fall into two categorites: 1) of_device_id is marked as __initdata, and we can never do this since these objects sit in the device core data structures way past boot. So even if a driver will never be reloaded, we have to keep the device ID table around. Mark such cases const instead. 2) The bootmem alloc/free handling code in mdesc.c was not fully marked __init as it should be, thus generating a reference to free_bootmem_late() (which is __init) from non-__init code. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/power.c')
-rw-r--r--arch/sparc/kernel/power.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/kernel/power.c b/arch/sparc/kernel/power.c
index cd725fe238b2..cb4c0f57c024 100644
--- a/arch/sparc/kernel/power.c
+++ b/arch/sparc/kernel/power.c
@@ -52,7 +52,7 @@ static int __devinit power_probe(struct platform_device *op)
return 0;
}
-static struct of_device_id __initdata power_match[] = {
+static const struct of_device_id power_match[] = {
{
.name = "power",
},