Created
July 1, 2015 10:23
-
-
Save Python1320/b86700ebf50997297de4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/target/linux/lantiq/patches-3.10/0202-owrt-lantiq-multiple-flash.patch b/target/linux/lantiq/patches-3.10/0202-owrt-lantiq-multiple-flash.patch | |
| index 5c6d91c..1218339 100644 | |
| --- a/target/linux/lantiq/patches-3.10/0202-owrt-lantiq-multiple-flash.patch | |
| +++ b/target/linux/lantiq/patches-3.10/0202-owrt-lantiq-multiple-flash.patch | |
| @@ -113,7 +113,7 @@ | |
| + else | |
| + ltq_mtd->map[i].phys = pdev->resource[i].start; | |
| + ltq_mtd->map[i].size = resource_size(&pdev->resource[i]); | |
| -+ ltq_mtd->map[i].virt = devm_ioremap(&pdev->dev, ltq_mtd->map[i].phys, | |
| ++ ltq_mtd->map[i].virt = devm_ioremap(&pdev->dev, pdev->resource[i].start, | |
| + ltq_mtd->map[i].size); | |
| + if (ltq_mtd->map[i].virt == NULL) { | |
| + dev_err(&pdev->dev, "Failed to ioremap flash region\n"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment