From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Michael Schmitz <schmitz@biophys.uni-duesseldorf.de>
Cc: linux-m68k@vger.kernel.org
Subject: Re: [PATCH 1/3] m68k: section mismatch fixes: EtherNAT
Date: Sun, 1 Feb 2009 11:22:25 +0100 (CET) [thread overview]
Message-ID: <Pine.LNX.4.64.0902011116130.20875@anakin> (raw)
In-Reply-To: <Pine.LNX.4.64.0902011049390.20875@anakin>
On Sun, 1 Feb 2009, Geert Uytterhoeven wrote:
> On Sun, 1 Feb 2009, Michael Schmitz wrote:
> > > > -static int smc_drv_probe(struct platform_device *pdev)
> > > > +static int __init smc_drv_probe(struct platform_device *pdev)
> > > ^^^^^^
> > > > {
> > > > struct smc91x_platdata *pd = pdev->dev.platform_data;
> > > > struct smc_local *lp;
> > >
> > > smc_drv_probe() should be marked __devinit, not __init.
> > > And smc_drv_remove() should be marked __devexit.
> >
> > Yep, only saw that after sending the patch. Do you want to fix that, or shall I
> > send a new patch? (My git tree is in a rough state after I've started to play
> > with switching Atari SCSI to NCR5380.c, or at least a fresh clone of that!)
>
> I'll fix it up.
Fixing it up triggered a few more __init/__devinit issues. Combined result
below...
commit d11918a83d4dc3d43e3f4d1d5905291bdfd0a507
Author: Michael Schmitz <schmitz@biophys.uni-duesseldorf.de>
Date: Sun Jan 18 03:10:55 2009 +0100
m68k: section mismatch fixes: EtherNAT
add __init annotation
[geert] Use __dev{in,ex}it
Signed-off-by: Michael Schmitz <schmitz@debian.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
diff --git a/drivers/net/atari_91C111.c b/drivers/net/atari_91C111.c
index c441779..af2d255 100644
--- a/drivers/net/atari_91C111.c
+++ b/drivers/net/atari_91C111.c
@@ -1724,7 +1724,7 @@ static const struct ethtool_ops smc_ethtool_ops = {
* I just deleted auto_irq.c, since it was never built...
* --jgarzik
*/
-static int __init smc_findirq(struct smc_local *lp)
+static int __devinit smc_findirq(struct smc_local *lp)
{
void __iomem *ioaddr = lp->base;
int timeout = 20;
@@ -1798,8 +1798,8 @@ static int __init smc_findirq(struct smc_local *lp)
* o actually GRAB the irq.
* o GRAB the region
*/
-static int __init smc_probe(struct net_device *dev, void __iomem *ioaddr,
- unsigned long irq_flags)
+static int __devinit smc_probe(struct net_device *dev, void __iomem *ioaddr,
+ unsigned long irq_flags)
{
struct smc_local *lp = netdev_priv(dev);
static int version_printed = 0;
@@ -2161,7 +2161,7 @@ static void smc_release_datacs(struct platform_device *pdev, struct net_device *
* 0 --> there is a device
* anything else, error
*/
-static int smc_drv_probe(struct platform_device *pdev)
+static int __devinit smc_drv_probe(struct platform_device *pdev)
{
struct smc91x_platdata *pd = pdev->dev.platform_data;
struct smc_local *lp;
@@ -2324,7 +2324,7 @@ static int smc_drv_probe(struct platform_device *pdev)
return ret;
}
-static int smc_drv_remove(struct platform_device *pdev)
+static int __devexit smc_drv_remove(struct platform_device *pdev)
{
struct net_device *ndev = platform_get_drvdata(pdev);
struct smc_local *lp = netdev_priv(ndev);
@@ -2389,7 +2389,7 @@ static int smc_drv_resume(struct platform_device *dev)
static struct platform_driver smc_driver = {
.probe = smc_drv_probe,
- .remove = smc_drv_remove,
+ .remove = __devexit_p(smc_drv_remove),
.suspend = smc_drv_suspend,
.resume = smc_drv_resume,
.driver = {
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
next prev parent reply other threads:[~2009-02-01 10:22 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-13 21:49 mac68k serial flameman mayer
2009-01-14 0:32 ` Brad Boyer
2009-01-14 1:50 ` Finn Thain
2009-01-16 23:31 ` Michael Schmitz
2009-01-17 3:13 ` Falcon IDE breakage Michael Schmitz
2009-01-17 11:58 ` Geert Uytterhoeven
2009-01-18 0:58 ` Michael Schmitz
2009-01-18 1:45 ` Falcon IDE breakage [patch] Michael Schmitz
2009-01-19 12:24 ` Bartlomiej Zolnierkiewicz
2009-01-18 2:10 ` [PATCH 1/3] m68k: section mismatch fixes: EtherNAT Michael Schmitz
2009-01-18 2:17 ` [PATCH 2/3] m68k: section mismatch fixes: DMAsound Michael Schmitz
2009-01-30 18:37 ` Geert Uytterhoeven
2009-01-18 2:22 ` [PATCH 3/3] m68k: section mismatch fixes: Atari SCSI Michael Schmitz
2009-01-30 18:38 ` Geert Uytterhoeven
2009-01-30 18:35 ` [PATCH 1/3] m68k: section mismatch fixes: EtherNAT Geert Uytterhoeven
2009-02-01 0:14 ` Michael Schmitz
2009-02-01 9:50 ` Geert Uytterhoeven
2009-02-01 10:22 ` Geert Uytterhoeven [this message]
2009-02-01 13:09 ` David D. Kilzer
2009-02-02 3:36 ` Michael Schmitz
2009-02-02 7:43 ` Geert Uytterhoeven
2009-01-17 6:59 ` mac68k serial Finn Thain
2009-01-17 8:24 ` Brad Boyer
2009-01-18 0:43 ` Michael Schmitz
2009-01-18 5:18 ` Brad Boyer
2009-01-14 21:26 ` Kolbjørn Barmen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.64.0902011116130.20875@anakin \
--to=geert@linux-m68k.org \
--cc=linux-m68k@vger.kernel.org \
--cc=schmitz@biophys.uni-duesseldorf.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox