Skip to content

Commit

Permalink
ASoC: omap_mcpdm_remove cannot be __devexit
Browse files Browse the repository at this point in the history
omap_mcpdm_remove is used from asoc_mcpdm_probe, which is an
initcall, and must not be discarded when HOTPLUG is disabled.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
arndb authored and broonie committed Oct 2, 2011
1 parent 21d17dd commit b5c49d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sound/soc/omap/mcpdm.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ int __devinit omap_mcpdm_probe(struct platform_device *pdev)
return ret;
}

int __devexit omap_mcpdm_remove(struct platform_device *pdev)
int omap_mcpdm_remove(struct platform_device *pdev)
{
struct omap_mcpdm *mcpdm_ptr = platform_get_drvdata(pdev);

Expand Down
2 changes: 1 addition & 1 deletion sound/soc/omap/mcpdm.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,4 @@ extern int omap_mcpdm_request(void);
extern void omap_mcpdm_free(void);
extern int omap_mcpdm_set_offset(int offset1, int offset2);
int __devinit omap_mcpdm_probe(struct platform_device *pdev);
int __devexit omap_mcpdm_remove(struct platform_device *pdev);
int omap_mcpdm_remove(struct platform_device *pdev);

0 comments on commit b5c49d4

Please sign in to comment.