Skip to content

Commit

Permalink
ALSA: Fix invalid __exit in sound/mips/*.c
Browse files Browse the repository at this point in the history
The remove callback has to be marked as __devexit, as the dynamic unbind
is possible.

Reported-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
tiwai committed Oct 2, 2009
1 parent 3b04691 commit 2f229a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sound/mips/hal2.c
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ static int __devinit hal2_probe(struct platform_device *pdev)
return 0;
}

static int __exit hal2_remove(struct platform_device *pdev)
static int __devexit hal2_remove(struct platform_device *pdev)
{
struct snd_card *card = platform_get_drvdata(pdev);

Expand Down
2 changes: 1 addition & 1 deletion sound/mips/sgio2audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ static int __devinit snd_sgio2audio_probe(struct platform_device *pdev)
return 0;
}

static int __exit snd_sgio2audio_remove(struct platform_device *pdev)
static int __devexit snd_sgio2audio_remove(struct platform_device *pdev)
{
struct snd_card *card = platform_get_drvdata(pdev);

Expand Down

0 comments on commit 2f229a3

Please sign in to comment.