From: Adrian Bunk <bunk@fs.tum.de>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Linus Torvalds <torvalds@osdl.org>, Andrew Morton <akpm@osdl.org>,
Jeff Garzik <jgarzik@pobox.com>,
Linux Kernel Development <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 406] Amiga Zorro8390 Ethernet new driver model
Date: Sun, 8 Feb 2004 17:46:38 +0100 [thread overview]
Message-ID: <20040208164638.GV7388@fs.tum.de> (raw)
In-Reply-To: <200402081528.i18FSUlL027005@callisto.of.borg>
On Sun, Feb 08, 2004 at 04:28:30PM +0100, Geert Uytterhoeven wrote:
> Zorro8390 Ethernet: Convert to the new driver model
>
> --- linux-2.6.3-rc1/drivers/net/zorro8390.c 2004-02-08 10:19:44.000000000 +0100
> +++ linux-m68k-2.6.3-rc1/drivers/net/zorro8390.c 2004-02-08 11:42:34.000000000 +0100
>...
> -static int __init zorro8390_probe(void);
> +static int __devinit zorro8390_init_one(struct zorro_dev *z,
> + const struct zorro_device_id *ent);
> static int __init zorro8390_init(struct net_device *dev, unsigned long board,
> const char *name, unsigned long ioaddr);
>...
> -static int __init zorro8390_probe(void)
> +static int __devinit zorro8390_init_one(struct zorro_dev *z,
> + const struct zorro_device_id *ent)
> {
>...
> + if ((err = zorro8390_init(dev, board, cards[i].name,
> + ZTWO_VADDR(ioaddr)))) {
> + release_mem_region(ioaddr, NE_IO_EXTENT*2);
> + free_netdev(dev);
> + return err;
> + }
> + zorro_set_drvdata(z, dev);
> + return 0;
> }
>...
__init zorro8390_init called from __devinit zorro8390_init_one ?
This will break when compiling the driver statically into a kernel with
CONFIG_HOTPLUG=y .
> Gr{oetje,eeting}s,
>
> Geert
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
next prev parent reply other threads:[~2004-02-08 16:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-08 15:28 Geert Uytterhoeven
2004-02-08 16:46 ` Adrian Bunk [this message]
2004-02-20 12:46 Geert Uytterhoeven
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=20040208164638.GV7388@fs.tum.de \
--to=bunk@fs.tum.de \
--cc=akpm@osdl.org \
--cc=geert@linux-m68k.org \
--cc=jgarzik@pobox.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/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
all inboxes | Powered by JetHome®