From: Wolfgang Denk Subject: Re: [PATCH 02/12] fs_enet: Add MPC5121 FEC support. Date: Thu, 07 May 2009 00:01:19 +0200 Message-ID: <20090506220119.7322783420E8@gemini.denx.de> References: <1241640919-4650-1-git-send-email-wd@denx.de> <1241640919-4650-3-git-send-email-wd@denx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Cc: linuxppc-dev@ozlabs.org, John Rigby , Piotr Ziecik , netdev@vger.kernel.org, John Rigby To: Grant Likely Return-path: Received: from mail-out.m-online.net ([212.18.0.9]:52757 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762248AbZEFWBV (ORCPT ); Wed, 6 May 2009 18:01:21 -0400 Cc: Detlev Zundel In-reply-to: Sender: netdev-owner@vger.kernel.org List-ID: Dear Grant, in message you wrote: > ... > > #ifdef CONFIG_FS_ENET_HAS_FEC > > +#ifdef CONFIG_FS_ENET_MPC5121_FEC > > + { > > + .compatible = "fsl,mpc5121-fec", > > + .data = (void *)&fs_fec_ops, > > + }, > > +#else > > { > > .compatible = "fsl,pq1-fec-enet", > > .data = (void *)&fs_fec_ops, > > }, > > #endif > > +#endif > > Hmmm. A lot of these #ifdefs in here. Does this have a multiplatform > impact? Not to mention the fact that it's just plain ugly. :-) Agreed that it's ugly, but duplicatio9ng the code would have been even worse. I don't think that it has multiplatform - at least not as long as you don't ask for one image that runs on 83xx and on 512x. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de Our business is run on trust. We trust you will pay in advance.