]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
[POWERPC] Init markings for celleb
authorIshizaki Kou <kou.ishizaki@toshiba.co.jp>
Thu, 26 Jul 2007 10:02:27 +0000 (20:02 +1000)
committerPaul Mackerras <paulus@samba.org>
Fri, 17 Aug 2007 01:01:50 +0000 (11:01 +1000)
There are some variables and functions that we should place in init
section.  And this patch changes some '__devinit' to '__init', because
the device is platform device and not hot-pluggable.

Signed-off-by: Kou Ishizaki <kou.ishizaki@toshiba.co.jp>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/celleb/scc_epci.c
arch/powerpc/platforms/celleb/scc_sio.c
arch/powerpc/platforms/celleb/setup.c

index c4b011094bd678a64b92a00ff70cc277e5cda5cb..881fd7d1806a295da1ab64b96d2dbfbdd4cf2172 100644 (file)
@@ -283,7 +283,7 @@ struct pci_ops celleb_epci_ops = {
 };
 
 /* to be moved in FW */
-static int __devinit celleb_epci_init(struct pci_controller *hose)
+static int __init celleb_epci_init(struct pci_controller *hose)
 {
        u32 val;
        volatile void __iomem *reg, *epci_base;
@@ -403,7 +403,7 @@ static int __devinit celleb_epci_init(struct pci_controller *hose)
        return 0;
 }
 
-int __devinit celleb_setup_epci(struct device_node *node,
+int __init celleb_setup_epci(struct device_node *node,
                                struct pci_controller *hose)
 {
        struct resource r;
index d219b60a4a8c78fc0c7989a25d24a43cc7531817..bb98735ac46f0068c05505880ecc3d6609a05504 100644 (file)
 
 /* sio irq0=0xb00010022 irq0=0xb00010023 irq2=0xb00010024
     mmio=0xfff000-0x1000,0xff2000-0x1000 */
-static int txx9_serial_bitmap = 0;
+static int txx9_serial_bitmap __initdata = 0;
 
 static struct {
        uint32_t offset;
        uint32_t index;
-} txx9_scc_tab[3] = {
+} txx9_scc_tab[3] __initdata = {
        { 0x300, 0 },   /* 0xFFF300 */
        { 0x400, 0 },   /* 0xFFF400 */
        { 0x800, 1 }    /* 0xFF2800 */
@@ -79,7 +79,7 @@ static int __init txx9_serial_init(void)
        return 0;
 }
 
-static int txx9_serial_config(char *ptr)
+static int __init txx9_serial_config(char *ptr)
 {
        int     i;
 
index 5e9f7f163571a36b08344e18e8e931c8035c47b1..1fca3f23533bc93f9877a9328abda8df419553e4 100644 (file)
@@ -73,7 +73,7 @@ static void celleb_show_cpuinfo(struct seq_file *m)
        of_node_put(root);
 }
 
-static int celleb_machine_type_hack(char *ptr)
+static int __init celleb_machine_type_hack(char *ptr)
 {
        strncpy(celleb_machine_type, ptr, sizeof(celleb_machine_type));
        celleb_machine_type[sizeof(celleb_machine_type)-1] = 0;
@@ -135,7 +135,7 @@ static void celleb_kexec_cpu_down(int crash, int secondary)
 }
 #endif
 
-static struct of_device_id celleb_bus_ids[] = {
+static struct of_device_id celleb_bus_ids[] __initdata = {
        { .type = "scc", },
        { .type = "ioif", },    /* old style */
        {},