netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][MIPS][6/6]: AR7 leds
       [not found] <200803120221.25044.technoboy85@gmail.com>
@ 2008-03-12  1:34 ` Matteo Croce
  2008-03-13  0:34   ` Matteo Croce
  0 siblings, 1 reply; 2+ messages in thread
From: Matteo Croce @ 2008-03-12  1:34 UTC (permalink / raw)
  To: linux-mips, linux-net
  Cc: Eugene Konev, netdev, davem, kuznet, pekkas, jmorris, yoshfuji,
	kaber, Andrew Morton, Jeff Garzik, Anton Vorontsov

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;
 		}
 	}

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH][MIPS][6/6]: AR7 leds
  2008-03-12  1:34 ` [PATCH][MIPS][6/6]: AR7 leds Matteo Croce
@ 2008-03-13  0:34   ` Matteo Croce
  0 siblings, 0 replies; 2+ messages in thread
From: Matteo Croce @ 2008-03-13  0:34 UTC (permalink / raw)
  To: linux-mips
  Cc: linux-net, Eugene Konev, netdev, davem, kuznet, pekkas, jmorris,
	yoshfuji, kaber, Andrew Morton, Jeff Garzik, Anton Vorontsov

Subject really was: AR7 ethernet

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-03-13  0:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200803120221.25044.technoboy85@gmail.com>
2008-03-12  1:34 ` [PATCH][MIPS][6/6]: AR7 leds Matteo Croce
2008-03-13  0:34   ` Matteo Croce

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).