Re: [PATCH,CFT] dynamic struct mii_bus allocation

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Lennert Buytenhek
Date: Friday, October 3, 2008 - 2:43 am

On Fri, Oct 03, 2008 at 11:36:01AM +0200, Laurent Pinchart wrote:


Hi Laurent,



What commit ID are you looking at?  I only see this:

	commit def8867a8d2a9f474262dd46179770845a420d51
	Author: Lennert Buytenhek <buytenh@wantstofly.org>
	Date:   Tue Sep 23 02:35:17 2008 +0200

	    phylib: rename mii_bus::dev to mii_bus::parent
	    
	    In preparation of giving mii_bus objects a device tree presence of
	    their own, rename struct mii_bus's ->dev argument to ->parent, since
	    having a 'struct device *dev' that points to our parent device
	    conflicts with introducing a 'struct device dev' representing our own
	    device.
	    
	    Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
	    Acked-by: Andy Fleming <afleming@freescale.com>

	[...]

	diff --git a/drivers/net/mv643xx_eth.c b/drivers/net/mv643xx_eth.c
	index 372811a..6340081 100644
	--- a/drivers/net/mv643xx_eth.c
	+++ b/drivers/net/mv643xx_eth.c
	@@ -2368,7 +2368,7 @@ static int mv643xx_eth_shared_probe(struct platform_device
			msp->smi_bus.read = smi_bus_read;
			msp->smi_bus.write = smi_bus_write,
			snprintf(msp->smi_bus.id, MII_BUS_ID_SIZE, "%d", pdev->id);
	-               msp->smi_bus.dev = &pdev->dev;
	+               msp->smi_bus.parent = &pdev->dev;
			msp->smi_bus.phy_mask = 0xffffffff;
			if (mdiobus_register(&msp->smi_bus) < 0)
				goto out_unmap;




Thanks!



Yeah, sorry for not reporting that separately.  (I'm not sure if it's
worth fixing separately, since deinit probably doesn't happen very
often.)


cheers,
Lennert
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH,CFT] dynamic struct mii_bus allocation, Lennert Buytenhek, (Thu Oct 2, 3:15 am)
Re: [PATCH,CFT] dynamic struct mii_bus allocation, Laurent Pinchart, (Fri Oct 3, 2:36 am)
Re: [PATCH,CFT] dynamic struct mii_bus allocation, Lennert Buytenhek, (Fri Oct 3, 2:43 am)
Re: [PATCH,CFT] dynamic struct mii_bus allocation, Laurent Pinchart, (Fri Oct 3, 2:49 am)
Re: [PATCH,CFT] dynamic struct mii_bus allocation, Vitaly Bordug, (Fri Oct 3, 1:57 pm)