summaryrefslogtreecommitdiff
path: root/target/linux
diff options
context:
space:
mode:
authorMatteo Croce <rootkit85@yahoo.it>2008-04-09 22:54:32 +0000
committerMatteo Croce <rootkit85@yahoo.it>2008-04-09 22:54:32 +0000
commite4775082d8594917063e35b2954b10f8494031fb (patch)
tree216cdf6c87ac42891c5fc6458907e286fe773584 /target/linux
parent56223a6f790a0af51d5396f0036f706f38f9e85b (diff)
downloadmtk-20170518-e4775082d8594917063e35b2954b10f8494031fb.zip
mtk-20170518-e4775082d8594917063e35b2954b10f8494031fb.tar.gz
mtk-20170518-e4775082d8594917063e35b2954b10f8494031fb.tar.bz2
ar7: remove useless chunks from a patch
SVN-Revision: 10778
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ar7/patches-2.6.24/170-_cpmac_phy_fix.diff49
-rw-r--r--target/linux/ar7/patches-2.6.24/170-cpmac_phy_fix.diff14
2 files changed, 14 insertions, 49 deletions
diff --git a/target/linux/ar7/patches-2.6.24/170-_cpmac_phy_fix.diff b/target/linux/ar7/patches-2.6.24/170-_cpmac_phy_fix.diff
deleted file mode 100644
index 13563c6..0000000
--- a/target/linux/ar7/patches-2.6.24/170-_cpmac_phy_fix.diff
+++ /dev/null
@@ -1,49 +0,0 @@
-diff -pruN linux-2.6.24.2.old/drivers/net/cpmac.c linux-2.6.24.2/drivers/net/cpmac.c
---- linux-2.6.24.2.old/drivers/net/cpmac.c 2008-03-20 20:33:01.000000000 +0100
-+++ linux-2.6.24.2/drivers/net/cpmac.c 2008-03-20 20:47:31.000000000 +0100
-@@ -1112,7 +1112,8 @@ static int external_switch;
-
- static int __devinit cpmac_probe(struct platform_device *pdev)
- {
-- int rc, phy_id, i;
-+ int rc, i;
-+ int phy_id;
- int mdio_bus_id = cpmac_mii.id;
- struct resource *mem;
- struct cpmac_priv *priv;
-@@ -1132,7 +1133,7 @@ static int __devinit cpmac_probe(struct
-
- if (phy_id == PHY_MAX_ADDR) {
- if (external_switch || dumb_switch) {
-- mdio_bus_id = 0; /* fixed phys bus */
-+ mdio_bus_id = 0;
- phy_id = pdev->id;
- } else {
- dev_err(&pdev->dev, "no PHY present\n");
-@@ -1178,9 +1179,7 @@ static int __devinit cpmac_probe(struct
- priv->msg_enable = netif_msg_init(debug_level, 0xff);
- memcpy(dev->dev_addr, pdata->dev_addr, sizeof(dev->dev_addr));
-
-- snprintf(priv->phy_name, BUS_ID_SIZE, PHY_ID_FMT, mdio_bus_id, phy_id);
--
-- priv->phy = phy_connect(dev, priv->phy_name, &cpmac_adjust_link, 0,
-+ priv->phy = phy_connect(dev, cpmac_mii.phy_map[phy_id]->dev.bus_id, &cpmac_adjust_link, 0,
- PHY_INTERFACE_MODE_MII);
- if (IS_ERR(priv->phy)) {
- if (netif_msg_drv(priv))
-@@ -1222,13 +1221,13 @@ static struct platform_driver cpmac_driv
- .remove = __devexit_p(cpmac_remove),
- };
-
--int __devinit cpmac_init(void)
-+int __devinit cpmac_init(struct platform_device *pldev, long long base)
- {
- u32 mask;
- int i, res;
-
-+ cpmac_mii.id=pldev->id;
- cpmac_mii.priv = ioremap(AR7_REGS_MDIO, 256);
--
- if (!cpmac_mii.priv) {
- printk(KERN_ERR "Can't ioremap mdio registers\n");
- return -ENXIO;
diff --git a/target/linux/ar7/patches-2.6.24/170-cpmac_phy_fix.diff b/target/linux/ar7/patches-2.6.24/170-cpmac_phy_fix.diff
new file mode 100644
index 0000000..b2af254
--- /dev/null
+++ b/target/linux/ar7/patches-2.6.24/170-cpmac_phy_fix.diff
@@ -0,0 +1,14 @@
+diff -pruN linux-2.6.24.2.old/drivers/net/cpmac.c linux-2.6.24.2/drivers/net/cpmac.c
+--- linux-2.6.24.2.old/drivers/net/cpmac.c 2008-03-20 20:33:01.000000000 +0100
++++ linux-2.6.24.2/drivers/net/cpmac.c 2008-03-20 20:47:31.000000000 +0100
+@@ -1178,9 +1179,7 @@ static int __devinit cpmac_probe(struct
+ priv->msg_enable = netif_msg_init(debug_level, 0xff);
+ memcpy(dev->dev_addr, pdata->dev_addr, sizeof(dev->dev_addr));
+
+- snprintf(priv->phy_name, BUS_ID_SIZE, PHY_ID_FMT, mdio_bus_id, phy_id);
+-
+- priv->phy = phy_connect(dev, priv->phy_name, &cpmac_adjust_link, 0,
++ priv->phy = phy_connect(dev, cpmac_mii.phy_map[phy_id]->dev.bus_id, &cpmac_adjust_link, 0,
+ PHY_INTERFACE_MODE_MII);
+ if (IS_ERR(priv->phy)) {
+ if (netif_msg_drv(priv))