| To: | linux-mips@linux-mips.org, linux-net@vger.kernel.org |
|---|---|
| Subject: | [PATCH][MIPS][6/6]: AR7 leds |
| From: | Matteo Croce <technoboy85@gmail.com> |
| Date: | Wed, 12 Mar 2008 02:34:39 +0100 |
| Cc: | Eugene Konev <ejka@imfi.kspu.ru>, netdev@vger.kernel.org, davem@davemloft.net, kuznet@ms2.inr.ac.ru, pekkas@netcore.fi, jmorris@namei.org, yoshfuji@linux-ipv6.org, kaber@coreworks.de, Andrew Morton <akpm@linux-foundation.org>, Jeff Garzik <jgarzik@pobox.com>, Anton Vorontsov <avorontsov@ru.mvista.com> |
| In-reply-to: | <200803120221.25044.technoboy85@gmail.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <200803120221.25044.technoboy85@gmail.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | KMail/1.9.9 |
Signed-off-by: Matteo Croce <technoboy85@gmail.com>
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
diff --git a/drivers/net/cpmac.c b/drivers/net/cpmac.c
index c85194f..05191b6 100644
--- a/drivers/net/cpmac.c
+++ b/drivers/net/cpmac.c
@@ -1006,23 +1006,10 @@ static int __devinit cpmac_probe(struct platform_device
*pdev)
if (phy_id == PHY_MAX_ADDR) {
if (external_switch || dumb_switch) {
- struct fixed_phy_status status = {};
-
- mdio_bus_id = 0;
-
- /*
- * FIXME: this should be in the platform code!
- * Since there is not platform code at all (that is,
- * no mainline users of that driver), place it here
- * for now.
- */
- phy_id = 0;
- status.link = 1;
- status.duplex = 1;
- status.speed = 100;
- fixed_phy_add(PHY_POLL, phy_id, &status);
+ mdio_bus_id = 0; /* fixed phys bus */
+ phy_id = pdev->id;
} else {
- printk(KERN_ERR "cpmac: no PHY present\n");
+ dev_err(&pdev->dev, "no PHY present\n");
return -ENODEV;
}
}
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH][MIPS][5/6]: AR7: serial hack, Matteo Croce |
|---|---|
| Next by Date: | Re: [PATCH][MIPS][5/6]: AR7: serial hack, Thomas Bogendoerfer |
| Previous by Thread: | Re: [PATCH][MIPS][5/6]: AR7: serial hack, Matteo Croce |
| Next by Thread: | Re: [PATCH][MIPS][6/6]: AR7 leds, Matteo Croce |
| Indexes: | [Date] [Thread] [Top] [All Lists] |