linux-mips
[Top] [All Lists]

[patch 8/8] au1xxx: pcmcia: fix __init called from non-init

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [patch 8/8] au1xxx: pcmcia: fix __init called from non-init
From: Domen Puncer <domen.puncer@ultra.si>
Date: Fri, 23 Jun 2006 12:01:49 +0200
Cc: linux-mips@linux-mips.org
In-reply-to: <20060623095703.GA30980@domen.ultra.si>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20060623095703.GA30980@domen.ultra.si>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.11+cvs20060126
This must not be marked __init, as it is called from 
au1x00_drv_pcmcia_probe.


Signed-off-by: Domen Puncer <domen.puncer@ultra.si>

Index: linux-mailed/drivers/pcmcia/au1000_db1x00.c
===================================================================
--- linux-mailed.orig/drivers/pcmcia/au1000_db1x00.c
+++ linux-mailed/drivers/pcmcia/au1000_db1x00.c
@@ -296,7 +296,7 @@ struct pcmcia_low_level db1x00_pcmcia_op
        .socket_suspend         = db1x00_socket_suspend
 };
 
-int __init au1x_board_init(struct device *dev)
+int au1x_board_init(struct device *dev)
 {
        int ret = -ENODEV;
        bcsr->pcmcia = 0; /* turn off power, if it's not already off */

<Prev in Thread] Current Thread [Next in Thread>