Skip to content

Commit

Permalink
mtd: OneNAND: add missing __devexit_p
Browse files Browse the repository at this point in the history
Add missing __devexit_p wrapper and no more mark shutdown with __devexit.
Fixes build in configurations where devexit functions get discarded.

Signed-off-by: Mika Korhonen <mika.j.korhonen@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
Mika Korhonen authored and David Woodhouse committed Jun 5, 2009
1 parent ab1ff21 commit d3412db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mtd/onenand/omap2.c
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ int omap2_onenand_rephase(void)
NULL, __adjust_timing);
}

static void __devexit omap2_onenand_shutdown(struct platform_device *pdev)
static void omap2_onenand_shutdown(struct platform_device *pdev)
{
struct omap2_onenand *c = dev_get_drvdata(&pdev->dev);

Expand Down Expand Up @@ -778,7 +778,7 @@ static int __devexit omap2_onenand_remove(struct platform_device *pdev)

static struct platform_driver omap2_onenand_driver = {
.probe = omap2_onenand_probe,
.remove = omap2_onenand_remove,
.remove = __devexit_p(omap2_onenand_remove),
.shutdown = omap2_onenand_shutdown,
.driver = {
.name = DRIVER_NAME,
Expand Down

0 comments on commit d3412db

Please sign in to comment.