diff options
Diffstat (limited to 'drivers/mtd/nand/davinci_nand.c')
-rw-r--r-- | drivers/mtd/nand/davinci_nand.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/drivers/mtd/nand/davinci_nand.c b/drivers/mtd/nand/davinci_nand.c index 94e17af8e450..c3e15a558173 100644 --- a/drivers/mtd/nand/davinci_nand.c +++ b/drivers/mtd/nand/davinci_nand.c | |||
@@ -34,6 +34,7 @@ | |||
34 | #include <linux/mtd/partitions.h> | 34 | #include <linux/mtd/partitions.h> |
35 | #include <linux/slab.h> | 35 | #include <linux/slab.h> |
36 | #include <linux/of_device.h> | 36 | #include <linux/of_device.h> |
37 | #include <linux/of.h> | ||
37 | 38 | ||
38 | #include <linux/platform_data/mtd-davinci.h> | 39 | #include <linux/platform_data/mtd-davinci.h> |
39 | #include <linux/platform_data/mtd-davinci-aemif.h> | 40 | #include <linux/platform_data/mtd-davinci-aemif.h> |
@@ -577,7 +578,6 @@ static struct davinci_nand_pdata | |||
577 | return pdev->dev.platform_data; | 578 | return pdev->dev.platform_data; |
578 | } | 579 | } |
579 | #else | 580 | #else |
580 | #define davinci_nand_of_match NULL | ||
581 | static struct davinci_nand_pdata | 581 | static struct davinci_nand_pdata |
582 | *nand_davinci_get_pdata(struct platform_device *pdev) | 582 | *nand_davinci_get_pdata(struct platform_device *pdev) |
583 | { | 583 | { |
@@ -878,22 +878,12 @@ static struct platform_driver nand_davinci_driver = { | |||
878 | .driver = { | 878 | .driver = { |
879 | .name = "davinci_nand", | 879 | .name = "davinci_nand", |
880 | .owner = THIS_MODULE, | 880 | .owner = THIS_MODULE, |
881 | .of_match_table = davinci_nand_of_match, | 881 | .of_match_table = of_match_ptr(davinci_nand_of_match), |
882 | }, | 882 | }, |
883 | }; | 883 | }; |
884 | MODULE_ALIAS("platform:davinci_nand"); | 884 | MODULE_ALIAS("platform:davinci_nand"); |
885 | 885 | ||
886 | static int __init nand_davinci_init(void) | 886 | module_platform_driver_probe(nand_davinci_driver, nand_davinci_probe); |
887 | { | ||
888 | return platform_driver_probe(&nand_davinci_driver, nand_davinci_probe); | ||
889 | } | ||
890 | module_init(nand_davinci_init); | ||
891 | |||
892 | static void __exit nand_davinci_exit(void) | ||
893 | { | ||
894 | platform_driver_unregister(&nand_davinci_driver); | ||
895 | } | ||
896 | module_exit(nand_davinci_exit); | ||
897 | 887 | ||
898 | MODULE_LICENSE("GPL"); | 888 | MODULE_LICENSE("GPL"); |
899 | MODULE_AUTHOR("Texas Instruments"); | 889 | MODULE_AUTHOR("Texas Instruments"); |