Skip to content

Instantly share code, notes, and snippets.

@Python1320
Created July 1, 2015 10:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Python1320/b86700ebf50997297de4 to your computer and use it in GitHub Desktop.
Save Python1320/b86700ebf50997297de4 to your computer and use it in GitHub Desktop.
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