From: Chris Zankel <chris@zankel.net>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: netdev@vger.kernel.org, "David S. Miller" <davem@davemloft.net>,
Andrew Morton <akpm@linux-foundation.org>,
Greg Kroah-Hartman <gregkh@suse.de>
Subject: Re: [PATCH] move xtsonic's probe function to .devinit.text
Date: Tue, 21 Jul 2009 17:00:17 -0700 [thread overview]
Message-ID: <4A665691.6080203@zankel.net> (raw)
In-Reply-To: <1248211527-32253-6-git-send-email-u.kleine-koenig@pengutronix.de>
Hi Uwe,
I will add it to the Xtensa tree in the next couple of days (together
with other patches that have piled up - still fighting a compiler issue).
Thanks,
-Chris
Uwe Kleine-König wrote:
> A pointer to xtsonic_probe is passed to the core via
> platform_driver_register and so the function must not disappear when the
> .init sections are discarded. Otherwise (if also having HOTPLUG=y)
> unbinding and binding a device to the driver via sysfs will result in an
> oops as does a device being registered late.
>
> An alternative to this patch is using platform_driver_probe instead of
> platform_driver_register plus removing the pointer to the probe function
> from the struct platform_driver.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> Cc: Chris Zankel <chris@zankel.net>
>
> Cc: David S. Miller <davem@davemloft.net>
> Cc: Andrew Morton <akpm@linux-foundation.org>
> Cc: Greg Kroah-Hartman <gregkh@suse.de>
> Cc: netdev@vger.kernel.org
>
> ---
> drivers/net/xtsonic.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/net/xtsonic.c b/drivers/net/xtsonic.c
> index 5a4ad15..0c44135 100644
> --- a/drivers/net/xtsonic.c
> +++ b/drivers/net/xtsonic.c
> @@ -239,7 +239,7 @@ out:
> * Actually probing is superfluous but we're paranoid.
> */
>
> -int __init xtsonic_probe(struct platform_device *pdev)
> +int __devinit xtsonic_probe(struct platform_device *pdev)
> {
> struct net_device *dev;
> struct sonic_local *lp;
>
next prev parent reply other threads:[~2009-07-22 0:09 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-21 21:25 [PATCH] move jazzsonic's probe function to .devinit.text Uwe Kleine-König
2009-07-21 21:25 ` [PATCH] move macsonic's " Uwe Kleine-König
2009-07-22 3:13 ` David Miller
2009-07-21 21:25 ` [PATCH] move meth's " Uwe Kleine-König
2009-07-22 3:12 ` David Miller
2009-07-21 21:25 ` [PATCH] move sb1250-mac's " Uwe Kleine-König
2009-07-22 3:13 ` David Miller
2009-07-21 21:25 ` [PATCH] move sgiseeq's " Uwe Kleine-König
2009-07-22 3:13 ` David Miller
2009-07-21 21:25 ` [PATCH] move xtsonic's " Uwe Kleine-König
2009-07-22 0:00 ` Chris Zankel [this message]
2009-07-22 3:13 ` David Miller
2009-07-22 3:13 ` [PATCH] move jazzsonic's " David Miller
-- strict thread matches above, loose matches on Subject: below --
2009-07-11 17:05 [PATCH] platform_driver_register: warn if probe is in .init.text Greg KH
2009-07-11 20:52 ` [PATCH] move acornfb's probe function to .devinit.text Uwe Kleine-König
2009-07-11 20:52 ` [PATCH] move am79c961's " Uwe Kleine-König
2009-07-11 20:52 ` [PATCH] move arcfb's " Uwe Kleine-König
2009-07-11 20:52 ` [PATCH] move at91_ether's " Uwe Kleine-König
2009-07-11 20:52 ` [PATCH] move cfag12864bfb's " Uwe Kleine-König
2009-07-11 20:52 ` [PATCH] move leds-clevo-mail's " Uwe Kleine-König
2009-07-11 20:52 ` [PATCH] move cobalt-lcd's " Uwe Kleine-König
2009-07-11 20:52 ` [PATCH] move corgi-ssp's " Uwe Kleine-König
2009-07-11 20:52 ` [PATCH] move efifb's " Uwe Kleine-König
2009-07-11 20:52 ` [PATCH] move epson1355fb's " Uwe Kleine-König
2009-07-11 20:52 ` [PATCH] move sh_flctl's " Uwe Kleine-König
2009-07-11 20:52 ` [PATCH] move gbefb's " Uwe Kleine-König
2009-07-11 20:52 ` [PATCH] move h1940-bt's " Uwe Kleine-König
2009-07-11 20:52 ` [PATCH] move hgafb's " Uwe Kleine-König
2009-07-11 20:52 ` [PATCH] move hitfb's " Uwe Kleine-König
2009-07-11 20:52 ` [PATCH] move hp680-bl's " Uwe Kleine-König
2009-07-11 20:52 ` [PATCH] move hp-wmi's " Uwe Kleine-König
2009-07-11 20:52 ` [PATCH] move jazzsonic's " Uwe Kleine-König
2009-07-11 20:52 ` [PATCH] move jornada_ssp's " Uwe Kleine-König
2009-07-11 20:52 ` [PATCH] move macsonic's " Uwe Kleine-König
2009-07-11 20:52 ` [PATCH] move meth's " Uwe Kleine-König
2009-07-11 20:52 ` [PATCH] move omap24xxcam's " Uwe Kleine-König
2009-07-11 20:52 ` [PATCH] move omap_hdq's " Uwe Kleine-König
2009-07-11 20:52 ` [PATCH] move i2c_omap's " Uwe Kleine-König
2009-07-11 20:52 ` [PATCH] move mmci-omap-hs's " Uwe Kleine-König
2009-07-11 20:52 ` [PATCH] move orion_nand's " Uwe Kleine-König
2009-07-11 20:52 ` [PATCH] move q40fb's " Uwe Kleine-König
2009-07-11 20:52 ` [PATCH] move s3c241xfb's " Uwe Kleine-König
2009-07-11 20:52 ` [PATCH] move sa11x0-fb's " Uwe Kleine-König
2009-07-11 20:52 ` [PATCH] move sb1250-mac's " Uwe Kleine-König
2009-07-11 20:52 ` [PATCH] move sgiseeq's " Uwe Kleine-König
2009-07-11 20:53 ` [PATCH] move sgivwfb's " Uwe Kleine-König
2009-07-11 20:53 ` [PATCH] move sgiwd93's " Uwe Kleine-König
2009-07-11 20:53 ` [PATCH] move sharpsl-pm's " Uwe Kleine-König
2009-07-11 20:53 ` [PATCH] move sh_mobile_lcdc_fb's " Uwe Kleine-König
2009-07-11 20:53 ` [PATCH] move snirm_53c710's " Uwe Kleine-König
2009-07-11 20:53 ` [PATCH] move stk17ta8's " Uwe Kleine-König
2009-07-11 20:53 ` [PATCH] move omap_udc's " Uwe Kleine-König
2009-07-11 20:53 ` [PATCH] move vesafb's " Uwe Kleine-König
2009-07-11 20:53 ` [PATCH] move vfb's " Uwe Kleine-König
2009-07-11 20:53 ` [PATCH] move vga16fb's " Uwe Kleine-König
2009-07-11 20:53 ` [PATCH] move w100fb's " Uwe Kleine-König
2009-07-11 20:53 ` [PATCH] move xtsonic's " Uwe Kleine-König
2009-01-12 22:12 platform_driver's probe functions must not be located in .init.text Uwe Kleine-König
2009-01-12 22:25 ` [PATCH] move xtsonic's probe function to .devinit.text Uwe Kleine-König
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=4A665691.6080203@zankel.net \
--to=chris@zankel.net \
--cc=akpm@linux-foundation.org \
--cc=davem@davemloft.net \
--cc=gregkh@suse.de \
--cc=netdev@vger.kernel.org \
--cc=u.kleine-koenig@pengutronix.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.