diff options
Diffstat (limited to 'drivers/mtd/nand/sh_flctl.c')
-rw-r--r-- | drivers/mtd/nand/sh_flctl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/mtd/nand/sh_flctl.c b/drivers/mtd/nand/sh_flctl.c index 2bc896623e2d..02bef21f2e4b 100644 --- a/drivers/mtd/nand/sh_flctl.c +++ b/drivers/mtd/nand/sh_flctl.c | |||
@@ -329,7 +329,7 @@ static void set_cmd_regs(struct mtd_info *mtd, uint32_t cmd, uint32_t flcmcdr_va | |||
329 | } | 329 | } |
330 | 330 | ||
331 | static int flctl_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, | 331 | static int flctl_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, |
332 | uint8_t *buf) | 332 | uint8_t *buf, int page) |
333 | { | 333 | { |
334 | int i, eccsize = chip->ecc.size; | 334 | int i, eccsize = chip->ecc.size; |
335 | int eccbytes = chip->ecc.bytes; | 335 | int eccbytes = chip->ecc.bytes; |
@@ -857,7 +857,6 @@ static int __exit flctl_remove(struct platform_device *pdev) | |||
857 | } | 857 | } |
858 | 858 | ||
859 | static struct platform_driver flctl_driver = { | 859 | static struct platform_driver flctl_driver = { |
860 | .probe = flctl_probe, | ||
861 | .remove = flctl_remove, | 860 | .remove = flctl_remove, |
862 | .driver = { | 861 | .driver = { |
863 | .name = "sh_flctl", | 862 | .name = "sh_flctl", |
@@ -867,7 +866,7 @@ static struct platform_driver flctl_driver = { | |||
867 | 866 | ||
868 | static int __init flctl_nand_init(void) | 867 | static int __init flctl_nand_init(void) |
869 | { | 868 | { |
870 | return platform_driver_register(&flctl_driver); | 869 | return platform_driver_probe(&flctl_driver, flctl_probe); |
871 | } | 870 | } |
872 | 871 | ||
873 | static void __exit flctl_nand_cleanup(void) | 872 | static void __exit flctl_nand_cleanup(void) |