diff options
Diffstat (limited to 'drivers/mtd/onenand/omap2.c')
-rw-r--r-- | drivers/mtd/onenand/omap2.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/mtd/onenand/omap2.c b/drivers/mtd/onenand/omap2.c index c849cacf4b2f..ea32c2fc4622 100644 --- a/drivers/mtd/onenand/omap2.c +++ b/drivers/mtd/onenand/omap2.c | |||
@@ -631,6 +631,7 @@ static int __devinit omap2_onenand_probe(struct platform_device *pdev) | |||
631 | { | 631 | { |
632 | struct omap_onenand_platform_data *pdata; | 632 | struct omap_onenand_platform_data *pdata; |
633 | struct omap2_onenand *c; | 633 | struct omap2_onenand *c; |
634 | struct onenand_chip *this; | ||
634 | int r; | 635 | int r; |
635 | 636 | ||
636 | pdata = pdev->dev.platform_data; | 637 | pdata = pdev->dev.platform_data; |
@@ -728,9 +729,8 @@ static int __devinit omap2_onenand_probe(struct platform_device *pdev) | |||
728 | 729 | ||
729 | c->mtd.dev.parent = &pdev->dev; | 730 | c->mtd.dev.parent = &pdev->dev; |
730 | 731 | ||
732 | this = &c->onenand; | ||
731 | if (c->dma_channel >= 0) { | 733 | if (c->dma_channel >= 0) { |
732 | struct onenand_chip *this = &c->onenand; | ||
733 | |||
734 | this->wait = omap2_onenand_wait; | 734 | this->wait = omap2_onenand_wait; |
735 | if (cpu_is_omap34xx()) { | 735 | if (cpu_is_omap34xx()) { |
736 | this->read_bufferram = omap3_onenand_read_bufferram; | 736 | this->read_bufferram = omap3_onenand_read_bufferram; |
@@ -751,6 +751,9 @@ static int __devinit omap2_onenand_probe(struct platform_device *pdev) | |||
751 | c->onenand.disable = omap2_onenand_disable; | 751 | c->onenand.disable = omap2_onenand_disable; |
752 | } | 752 | } |
753 | 753 | ||
754 | if (pdata->skip_initial_unlocking) | ||
755 | this->options |= ONENAND_SKIP_INITIAL_UNLOCKING; | ||
756 | |||
754 | if ((r = onenand_scan(&c->mtd, 1)) < 0) | 757 | if ((r = onenand_scan(&c->mtd, 1)) < 0) |
755 | goto err_release_regulator; | 758 | goto err_release_regulator; |
756 | 759 | ||