mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: "Uwe Kleine-König" <ukleinek@informatik.uni-freiburg.de>
Cc: linux-kernel@vger.kernel.org,
	Adrian McMenamin <adrian@mcmen.demon.co.uk>,
	Paul Mundt <lethal@linux-sh.org>,
	Jaroslav Kysela <perex@perex.cz>,
	Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH] Fix section for snd-aica platform driver
Date: Sun, 14 Sep 2008 23:56:10 +0200	[thread overview]
Message-ID: <s5h8wtuv1c5.wl%tiwai@suse.de> (raw)
In-Reply-To: <1221420753-6613-1-git-send-email-ukleinek@informatik.uni-freiburg.de>

At Sun, 14 Sep 2008 21:32:33 +0200,
Uwe Kleine-König wrote:
> 
> Don't use __init but __devinit to define probe function.  A pointer to
> snd_aica_probe is passed to the core via platform_driver_register and so the
> function must not disappear after the module is loaded.  Using __init
> and having HOTPLUG=y and SND_AICA=m the following probably oopses:
> 
> 	echo -n AICA > /sys/bus/platform/driver/AICA/unbind
> 	echo -n AICA > /sys/bus/platform/driver/AICA/bind
> 
> Strange enough add_aicamixer_controls which is only called by
> snd_aica_probe was already using __devinit.
> 
> While at it move the remove function to .devexit.text section.
> 
> Signed-off-by: Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de>
> Cc: Adrian McMenamin <adrian@mcmen.demon.co.uk>
> Cc: Paul Mundt <lethal@linux-sh.org>
> Cc: Takashi Iwai <tiwai@suse.de>
> Cc: Jaroslav Kysela <perex@perex.cz>
> Cc: Andrew Morton <akpm@linux-foundation.org>
> 
> ---
>  sound/sh/aica.c |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)

Thanks, applied now.


Takashi

      reply	other threads:[~2008-09-14 21:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-14 19:32 Uwe Kleine-König
2008-09-14 21:56 ` Takashi Iwai [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=s5h8wtuv1c5.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=adrian@mcmen.demon.co.uk \
    --cc=akpm@linux-foundation.org \
    --cc=lethal@linux-sh.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=ukleinek@informatik.uni-freiburg.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

all inboxes | Powered by JetHome®