From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1U3AmU-0004MQ-5l for barebox@lists.infradead.org; Wed, 06 Feb 2013 19:35:42 +0000 Date: Wed, 6 Feb 2013 20:35:40 +0100 From: Sascha Hauer Message-ID: <20130206193540.GL1906@pengutronix.de> References: <20130205101236.GA19322@game.jcrosoft.org> <1360059306-31118-1-git-send-email-plagnioj@jcrosoft.com> <1360059306-31118-2-git-send-email-plagnioj@jcrosoft.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1360059306-31118-2-git-send-email-plagnioj@jcrosoft.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 2/4] macb: register the phy after the macb is init To: Jean-Christophe PLAGNIOL-VILLARD Cc: barebox@lists.infradead.org On Tue, Feb 05, 2013 at 11:15:04AM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > --- > drivers/net/macb.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/macb.c b/drivers/net/macb.c > index 15b1e93..8eac4a8 100644 > --- a/drivers/net/macb.c > +++ b/drivers/net/macb.c > @@ -476,8 +476,8 @@ static int macb_probe(struct device_d *dev) > > macb_writel(macb, NCFGR, ncfgr); > > - mdiobus_register(&macb->miibus); > eth_register(edev); > + mdiobus_register(&macb->miibus); Why? Most other drivers do it the other way round and you do not provide information why this is done. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox