aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mvebu/patches-3.10/0101-mtd-nand-pxa3xx-Use-devm_kzalloc.patch
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2014-06-29 23:29:57 +0000
committerLuka Perkov <luka@openwrt.org>2014-06-29 23:29:57 +0000
commit2397978836e003e55cd5a66d4025efc262467a79 (patch)
treeb3616bb4a167d8e900e0b04f44eab8f1760a6815 /target/linux/mvebu/patches-3.10/0101-mtd-nand-pxa3xx-Use-devm_kzalloc.patch
parentba967cd842e5d7425d6cc4e7e1584b7f000a5d86 (diff)
downloadmaster-187ad058-2397978836e003e55cd5a66d4025efc262467a79.tar.gz
master-187ad058-2397978836e003e55cd5a66d4025efc262467a79.tar.bz2
master-187ad058-2397978836e003e55cd5a66d4025efc262467a79.zip
mvebu: drop 3.10 support
Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41406 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/mvebu/patches-3.10/0101-mtd-nand-pxa3xx-Use-devm_kzalloc.patch')
-rw-r--r--target/linux/mvebu/patches-3.10/0101-mtd-nand-pxa3xx-Use-devm_kzalloc.patch60
1 files changed, 0 insertions, 60 deletions
diff --git a/target/linux/mvebu/patches-3.10/0101-mtd-nand-pxa3xx-Use-devm_kzalloc.patch b/target/linux/mvebu/patches-3.10/0101-mtd-nand-pxa3xx-Use-devm_kzalloc.patch
deleted file mode 100644
index 4ff71f0fb2..0000000000
--- a/target/linux/mvebu/patches-3.10/0101-mtd-nand-pxa3xx-Use-devm_kzalloc.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From 271ef48cf11b86ab666582051fed3bdb13681e64 Mon Sep 17 00:00:00 2001
-From: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
-Date: Wed, 17 Apr 2013 13:38:09 -0300
-Subject: [PATCH 101/203] mtd: nand: pxa3xx: Use devm_kzalloc
-
-Replace regular kzalloc with managed devm_kzalloc
-which simplifies the error path.
-
-Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
-Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
-Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
----
- drivers/mtd/nand/pxa3xx_nand.c | 14 ++++----------
- 1 file changed, 4 insertions(+), 10 deletions(-)
-
---- a/drivers/mtd/nand/pxa3xx_nand.c
-+++ b/drivers/mtd/nand/pxa3xx_nand.c
-@@ -1035,12 +1035,10 @@ static int alloc_nand_resource(struct pl
- int ret, irq, cs;
-
- pdata = pdev->dev.platform_data;
-- info = kzalloc(sizeof(*info) + (sizeof(*mtd) +
-- sizeof(*host)) * pdata->num_cs, GFP_KERNEL);
-- if (!info) {
-- dev_err(&pdev->dev, "failed to allocate memory\n");
-+ info = devm_kzalloc(&pdev->dev, sizeof(*info) + (sizeof(*mtd) +
-+ sizeof(*host)) * pdata->num_cs, GFP_KERNEL);
-+ if (!info)
- return -ENOMEM;
-- }
-
- info->pdev = pdev;
- for (cs = 0; cs < pdata->num_cs; cs++) {
-@@ -1072,8 +1070,7 @@ static int alloc_nand_resource(struct pl
- info->clk = clk_get(&pdev->dev, NULL);
- if (IS_ERR(info->clk)) {
- dev_err(&pdev->dev, "failed to get nand clock\n");
-- ret = PTR_ERR(info->clk);
-- goto fail_free_mtd;
-+ return PTR_ERR(info->clk);
- }
- clk_enable(info->clk);
-
-@@ -1165,8 +1162,6 @@ fail_free_res:
- fail_put_clk:
- clk_disable(info->clk);
- clk_put(info->clk);
--fail_free_mtd:
-- kfree(info);
- return ret;
- }
-
-@@ -1202,7 +1197,6 @@ static int pxa3xx_nand_remove(struct pla
-
- for (cs = 0; cs < pdata->num_cs; cs++)
- nand_release(info->host[cs]->mtd);
-- kfree(info);
- return 0;
- }
-