aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/patches-4.3/0514-net-mediatek-fix_esw.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-03-07 17:56:53 +0000
committerFelix Fietkau <nbd@openwrt.org>2016-03-07 17:56:53 +0000
commit3abf5ce6564e24a388b86caf1a00f91f4262b312 (patch)
tree77c12b89874795e1d0627b9106d526a6660e4cc1 /target/linux/ramips/patches-4.3/0514-net-mediatek-fix_esw.patch
parentf73d8fb81bd847c61cd3fba2a8b1240619009aff (diff)
downloadupstream-3abf5ce6564e24a388b86caf1a00f91f4262b312.tar.gz
upstream-3abf5ce6564e24a388b86caf1a00f91f4262b312.tar.bz2
upstream-3abf5ce6564e24a388b86caf1a00f91f4262b312.zip
ramips: convert the remaining subtargets to 4.4
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48954
Diffstat (limited to 'target/linux/ramips/patches-4.3/0514-net-mediatek-fix_esw.patch')
-rw-r--r--target/linux/ramips/patches-4.3/0514-net-mediatek-fix_esw.patch48
1 files changed, 0 insertions, 48 deletions
diff --git a/target/linux/ramips/patches-4.3/0514-net-mediatek-fix_esw.patch b/target/linux/ramips/patches-4.3/0514-net-mediatek-fix_esw.patch
deleted file mode 100644
index de44a9f286..0000000000
--- a/target/linux/ramips/patches-4.3/0514-net-mediatek-fix_esw.patch
+++ /dev/null
@@ -1,48 +0,0 @@
---- a/drivers/net/ethernet/mediatek/esw_rt3050.c
-+++ b/drivers/net/ethernet/mediatek/esw_rt3050.c
-@@ -16,6 +16,7 @@
- #include <linux/kernel.h>
- #include <linux/platform_device.h>
- #include <asm/mach-ralink/ralink_regs.h>
-+#include <linux/of_irq.h>
-
- #include <linux/switch.h>
-
-@@ -1332,7 +1333,6 @@ static int esw_probe(struct platform_dev
- const __be32 *port_map, *reg_init;
- struct switch_dev *swdev;
- struct rt305x_esw *esw;
-- struct resource *irq;
- int ret;
-
- esw = devm_kzalloc(&pdev->dev, sizeof(*esw), GFP_KERNEL);
-@@ -1340,7 +1340,7 @@ static int esw_probe(struct platform_dev
- return -ENOMEM;
-
- esw->dev = &pdev->dev;
-- esw->irq = irq->start;
-+ esw->irq = irq_of_parse_and_map(np, 0);
- esw->base = devm_ioremap_resource(&pdev->dev, res);
- if (!esw->base)
- return -EADDRNOTAVAIL;
-@@ -1365,7 +1365,7 @@ static int esw_probe(struct platform_dev
- ret = register_switch(swdev, NULL);
- if (ret < 0) {
- dev_err(&pdev->dev, "register_switch failed\n");
-- goto unmap_base;
-+ return ret;
- }
-
- platform_set_drvdata(pdev, esw);
-@@ -1383,11 +1383,6 @@ static int esw_probe(struct platform_dev
- }
-
- return ret;
--
--unmap_base:
-- iounmap(esw->base);
-- kfree(esw);
-- return ret;
- }
-
- static int esw_remove(struct platform_device *pdev)