From: Adam Belay <ambx1@neo.rr.com>
To: "Ruslan U. Zakirov" <cubic@wildrose.miee.ru>
Cc: linux-kernel@vger.kernel.org, greg@kroah.com
Subject: Re: [PATCH 2.5.65] pnp api changes to sound/isa/sb/es968.c
Date: Wed, 19 Mar 2003 22:08:49 +0000 [thread overview]
Message-ID: <20030319220849.GB13998@neo.rr.com> (raw)
In-Reply-To: <861563974656.20030319180923@wr.miee.ru>
On Wed, Mar 19, 2003 at 06:09:23PM +0300, Ruslan U. Zakirov wrote:
> JK> Following patch is to make ESS968 driver to work with PNP API.
> [SNIP]
> JK> +static int __devinit snd_es968_pnp_detect(struct pnp_card_link *card,
> [SNIP]
> Hello, Adam, Greg and other.
> As I think in this section of kernel it's not necessarily to use
> __devinit and __devexit.
> Soundcards(and other devices) can't be HotPlug as I know.
> And if we look at #define of this attributes, then we see that
> it useless with not HotPlug devices.
>
> 180 #ifdef CONFIG_HOTPLUG
> 181 #define __devinit
> 182 #define __devinitdata
> 183 #define __devexit
> 184 #define __devexitdata
> 185 #else
> 186 #define __devinit __init
> 187 #define __devinitdata __initdata
> 188 #define __devexit __exit
> 189 #define __devexitdata __exitdata
> 190 #endif
> And with changes from __init to __devinit and enabled CONFIG_HOTPLUG
> we loose advantage of __init.
> May be I've missed something?
> Best regards, Ruslan.
Yes, I agree. We should be using init for these particular drivers. PnPBIOS
devices may be on docking stations and I'd like to leave them as __devinit but
for strictly isapnp devices such as these, init makes sense. I'll add this to
my tree.
Thanks for bringing this to my attention.
-Adam
prev parent reply other threads:[~2003-03-20 2:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-19 12:03 John Kim
2003-03-19 12:11 ` Christoph Hellwig
2003-03-19 14:33 ` John Kim
2003-03-19 14:36 ` [PATCH 2.5.65] pnp api changes to sound/isa/sb/es968.c [rev2] John Kim
2003-03-19 14:38 ` [PATCH 2.5.65] pnp api changes to sound/isa/sb/es968.c Ruslan U. Zakirov
2003-03-19 15:09 ` Ruslan U. Zakirov
2003-03-19 16:22 ` John Kim
2003-03-19 22:15 ` Adam Belay
2003-03-19 22:08 ` Adam Belay [this message]
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=20030319220849.GB13998@neo.rr.com \
--to=ambx1@neo.rr.com \
--cc=cubic@wildrose.miee.ru \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.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®