From 26b06940a9bd894c1a21d76b160a3daea0843417 Mon Sep 17 00:00:00 2001 From: Luka Perkov Date: Sun, 29 Jun 2014 23:29:57 +0000 Subject: mvebu: drop 3.10 support Signed-off-by: Luka Perkov SVN-Revision: 41406 --- ...mtd-nand-pxa3xx-Use-devm_ioremap_resource.patch | 82 ---------------------- 1 file changed, 82 deletions(-) delete mode 100644 target/linux/mvebu/patches-3.10/0102-mtd-nand-pxa3xx-Use-devm_ioremap_resource.patch (limited to 'target/linux/mvebu/patches-3.10/0102-mtd-nand-pxa3xx-Use-devm_ioremap_resource.patch') diff --git a/target/linux/mvebu/patches-3.10/0102-mtd-nand-pxa3xx-Use-devm_ioremap_resource.patch b/target/linux/mvebu/patches-3.10/0102-mtd-nand-pxa3xx-Use-devm_ioremap_resource.patch deleted file mode 100644 index eec80792d2..0000000000 --- a/target/linux/mvebu/patches-3.10/0102-mtd-nand-pxa3xx-Use-devm_ioremap_resource.patch +++ /dev/null @@ -1,82 +0,0 @@ -From 5c461327aca8975276d2480ddf02b6c7f0a29548 Mon Sep 17 00:00:00 2001 -From: Ezequiel Garcia -Date: Wed, 17 Apr 2013 13:38:10 -0300 -Subject: [PATCH 102/203] mtd: nand: pxa3xx: Use devm_ioremap_resource - -Using the new devm_ioremap_resource() we can greatly -simplify resource handling. - -Signed-off-by: Ezequiel Garcia -Signed-off-by: Artem Bityutskiy -Signed-off-by: David Woodhouse ---- - drivers/mtd/nand/pxa3xx_nand.c | 31 ++++--------------------------- - 1 file changed, 4 insertions(+), 27 deletions(-) - ---- a/drivers/mtd/nand/pxa3xx_nand.c -+++ b/drivers/mtd/nand/pxa3xx_nand.c -@@ -1108,30 +1108,16 @@ static int alloc_nand_resource(struct pl - } - - r = platform_get_resource(pdev, IORESOURCE_MEM, 0); -- if (r == NULL) { -- dev_err(&pdev->dev, "no IO memory resource defined\n"); -- ret = -ENODEV; -+ info->mmio_base = devm_ioremap_resource(&pdev->dev, r); -+ if (IS_ERR(info->mmio_base)) { -+ ret = PTR_ERR(info->mmio_base); - goto fail_put_clk; - } -- -- r = request_mem_region(r->start, resource_size(r), pdev->name); -- if (r == NULL) { -- dev_err(&pdev->dev, "failed to request memory resource\n"); -- ret = -EBUSY; -- goto fail_put_clk; -- } -- -- info->mmio_base = ioremap(r->start, resource_size(r)); -- if (info->mmio_base == NULL) { -- dev_err(&pdev->dev, "ioremap() failed\n"); -- ret = -ENODEV; -- goto fail_free_res; -- } - info->mmio_phys = r->start; - - ret = pxa3xx_nand_init_buff(info); - if (ret) -- goto fail_free_io; -+ goto fail_put_clk; - - /* initialize all interrupts to be disabled */ - disable_int(info, NDSR_MASK); -@@ -1155,10 +1141,6 @@ fail_free_buf: - info->data_buff, info->data_buff_phys); - } else - kfree(info->data_buff); --fail_free_io: -- iounmap(info->mmio_base); --fail_free_res: -- release_mem_region(r->start, resource_size(r)); - fail_put_clk: - clk_disable(info->clk); - clk_put(info->clk); -@@ -1169,7 +1151,6 @@ static int pxa3xx_nand_remove(struct pla - { - struct pxa3xx_nand_info *info = platform_get_drvdata(pdev); - struct pxa3xx_nand_platform_data *pdata; -- struct resource *r; - int irq, cs; - - if (!info) -@@ -1188,10 +1169,6 @@ static int pxa3xx_nand_remove(struct pla - } else - kfree(info->data_buff); - -- iounmap(info->mmio_base); -- r = platform_get_resource(pdev, IORESOURCE_MEM, 0); -- release_mem_region(r->start, resource_size(r)); -- - clk_disable(info->clk); - clk_put(info->clk); - -- cgit v1.2.3