diff options
Diffstat (limited to 'drivers/mtd/nand/bf5xx_nand.c')
-rw-r--r-- | drivers/mtd/nand/bf5xx_nand.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mtd/nand/bf5xx_nand.c b/drivers/mtd/nand/bf5xx_nand.c index 3555f6b3ebe0..e259a7b75b2d 100644 --- a/drivers/mtd/nand/bf5xx_nand.c +++ b/drivers/mtd/nand/bf5xx_nand.c | |||
@@ -640,7 +640,7 @@ static int bf5xx_nand_add_partition(struct bf5xx_nand_info *info) | |||
640 | #endif | 640 | #endif |
641 | } | 641 | } |
642 | 642 | ||
643 | static int bf5xx_nand_remove(struct platform_device *pdev) | 643 | static int __devexit bf5xx_nand_remove(struct platform_device *pdev) |
644 | { | 644 | { |
645 | struct bf5xx_nand_info *info = to_nand_info(pdev); | 645 | struct bf5xx_nand_info *info = to_nand_info(pdev); |
646 | struct mtd_info *mtd = NULL; | 646 | struct mtd_info *mtd = NULL; |
@@ -673,7 +673,7 @@ static int bf5xx_nand_remove(struct platform_device *pdev) | |||
673 | * it can allocate all necessary resources then calls the | 673 | * it can allocate all necessary resources then calls the |
674 | * nand layer to look for devices | 674 | * nand layer to look for devices |
675 | */ | 675 | */ |
676 | static int bf5xx_nand_probe(struct platform_device *pdev) | 676 | static int __devinit bf5xx_nand_probe(struct platform_device *pdev) |
677 | { | 677 | { |
678 | struct bf5xx_nand_platform *plat = to_nand_plat(pdev); | 678 | struct bf5xx_nand_platform *plat = to_nand_plat(pdev); |
679 | struct bf5xx_nand_info *info = NULL; | 679 | struct bf5xx_nand_info *info = NULL; |
@@ -815,7 +815,7 @@ static int bf5xx_nand_resume(struct platform_device *dev) | |||
815 | /* driver device registration */ | 815 | /* driver device registration */ |
816 | static struct platform_driver bf5xx_nand_driver = { | 816 | static struct platform_driver bf5xx_nand_driver = { |
817 | .probe = bf5xx_nand_probe, | 817 | .probe = bf5xx_nand_probe, |
818 | .remove = bf5xx_nand_remove, | 818 | .remove = __devexit_p(bf5xx_nand_remove), |
819 | .suspend = bf5xx_nand_suspend, | 819 | .suspend = bf5xx_nand_suspend, |
820 | .resume = bf5xx_nand_resume, | 820 | .resume = bf5xx_nand_resume, |
821 | .driver = { | 821 | .driver = { |