From 78a66975d65b348bb49d741e21f6399cdb27b87d Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Mon, 17 Jun 2013 19:32:47 +0000 Subject: brcm63xx: remove support for 3.8 kernel Signed-off-by: Florian Fainelli SVN-Revision: 36948 --- ...m63xx_enet-use-managed-memory-allocations.patch | 42 ---------------------- 1 file changed, 42 deletions(-) delete mode 100644 target/linux/brcm63xx/patches-3.8/020-bcm63xx_enet-use-managed-memory-allocations.patch (limited to 'target/linux/brcm63xx/patches-3.8/020-bcm63xx_enet-use-managed-memory-allocations.patch') diff --git a/target/linux/brcm63xx/patches-3.8/020-bcm63xx_enet-use-managed-memory-allocations.patch b/target/linux/brcm63xx/patches-3.8/020-bcm63xx_enet-use-managed-memory-allocations.patch deleted file mode 100644 index 7c356d5..0000000 --- a/target/linux/brcm63xx/patches-3.8/020-bcm63xx_enet-use-managed-memory-allocations.patch +++ /dev/null @@ -1,42 +0,0 @@ -From 451a609ca472f80838df056689359c5486d832c1 Mon Sep 17 00:00:00 2001 -From: Jonas Gorski -Date: Sun, 10 Mar 2013 14:05:01 +0100 -Subject: [PATCH 2/3] bcm63xx_enet: use managed memory allocations - -Signed-off-by: Jonas Gorski ---- - drivers/net/ethernet/broadcom/bcm63xx_enet.c | 8 +++----- - 1 file changed, 3 insertions(+), 5 deletions(-) - ---- a/drivers/net/ethernet/broadcom/bcm63xx_enet.c -+++ b/drivers/net/ethernet/broadcom/bcm63xx_enet.c -@@ -1728,7 +1728,8 @@ static int bcm_enet_probe(struct platfor - * if a slave is not present on hw */ - bus->phy_mask = ~(1 << priv->phy_id); - -- bus->irq = kmalloc(sizeof(int) * PHY_MAX_ADDR, GFP_KERNEL); -+ bus->irq = devm_kzalloc(&pdev->dev, sizeof(int) * PHY_MAX_ADDR, -+ GFP_KERNEL); - if (!bus->irq) { - ret = -ENOMEM; - goto out_free_mdio; -@@ -1789,10 +1790,8 @@ static int bcm_enet_probe(struct platfor - return 0; - - out_unregister_mdio: -- if (priv->mii_bus) { -+ if (priv->mii_bus) - mdiobus_unregister(priv->mii_bus); -- kfree(priv->mii_bus->irq); -- } - - out_free_mdio: - if (priv->mii_bus) -@@ -1833,7 +1832,6 @@ static int bcm_enet_remove(struct platfo - - if (priv->has_phy) { - mdiobus_unregister(priv->mii_bus); -- kfree(priv->mii_bus->irq); - mdiobus_free(priv->mii_bus); - } else { - struct bcm63xx_enet_platform_data *pd; -- cgit v1.1