Skip to content

Commit

Permalink
usb: gadget: remove __devexit in f_uac2
Browse files Browse the repository at this point in the history
avoids the following section missmatch
|WARNING: drivers/usb/gadget/g_audio.o(.init.text+0x2e7): Section
|mismatch in reference from the function afunc_bind() to the function
|.devexit.text:snd_uac2_remove()
|The function __init afunc_bind() references
|a function __devexit snd_uac2_remove().
|This is often seen when error handling in the init function
|uses functionality in the exit path.
|The fix is often to remove the __devexit annotation of
|snd_uac2_remove() so it may be used outside an exit section.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Sebastian Andrzej Siewior authored and Felipe Balbi committed Sep 10, 2012
1 parent fac3a43 commit 1e1a27c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/f_uac2.c
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ static int __devinit snd_uac2_probe(struct platform_device *pdev)
return err;
}

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

Expand Down

0 comments on commit 1e1a27c

Please sign in to comment.