[MIPS] Make resources for ds1742 "static __initdata"
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Mon, 30 Apr 2007 16:49:20 +0000 (01:49 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 24 Jul 2007 15:02:47 +0000 (16:02 +0100)
We can make resources for platform_device_register_simple() "static
__initdata".

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/jmr3927/rbhma3100/setup.c
arch/mips/tx4927/toshiba_rbtx4927/toshiba_rbtx4927_setup.c

index d1ef2895d5640c1e1669399e9499ac1d25f18a32..8303001516d214dfc33cc097a89f8aa25eaf295e 100644 (file)
@@ -434,7 +434,7 @@ EXPORT_SYMBOL(__swizzle_addr_b);
 
 static int __init jmr3927_rtc_init(void)
 {
-       struct resource res = {
+       static struct resource __initdata res = {
                .start  = JMR3927_IOC_NVRAMB_ADDR - IO_BASE,
                .end    = JMR3927_IOC_NVRAMB_ADDR - IO_BASE + 0x800 - 1,
                .flags  = IORESOURCE_MEM,
index 40c7c3eeafaf2e740fe0e633aa8e82e8135f6123..ab72292a172e65bd7639e4cf1aa8649b8de6584a 100644 (file)
@@ -1020,7 +1020,7 @@ void __init toshiba_rbtx4927_timer_setup(struct irqaction *irq)
 
 static int __init toshiba_rbtx4927_rtc_init(void)
 {
-       struct resource res = {
+       static struct resource __initdata res = {
                .start  = 0x1c010000,
                .end    = 0x1c010000 + 0x800 - 1,
                .flags  = IORESOURCE_MEM,