aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorMike Frysinger <vapier.adi@gmail.com>2008-07-30 15:35:02 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2008-08-01 10:43:14 -0400
commit2445af3853928bf3ee7960e09f548a1b07924091 (patch)
treed19c52039ef5f88db5ac0a82f7b5959dd40f15d4 /drivers/mtd
parentfcb90ba7e9ba9a17ca5103be3f3ae3a446dadc14 (diff)
[MTD] [NAND] Blackfin NFC Driver: add proper devinit/devexit markings to probe/remove functions
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com> Signed-off-by: Bryan Wu <cooloney@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/bf5xx_nand.c6
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
643static int bf5xx_nand_remove(struct platform_device *pdev) 643static 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 */
676static int bf5xx_nand_probe(struct platform_device *pdev) 676static 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 */
816static struct platform_driver bf5xx_nand_driver = { 816static 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 = {