From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from az33egw02.freescale.net (az33egw02.freescale.net [192.88.158.103]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "az33egw02.freescale.net", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id CE75450292 for ; Thu, 7 May 2009 07:08:24 +1000 (EST) Message-ID: <4A01FC3F.7080004@freescale.com> Date: Wed, 06 May 2009 16:08:15 -0500 From: Scott Wood MIME-Version: 1.0 To: Grant Likely Subject: Re: [PATCH 02/12] fs_enet: Add MPC5121 FEC support. References: <1241640919-4650-1-git-send-email-wd@denx.de> <1241640919-4650-3-git-send-email-wd@denx.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Cc: John Rigby , linuxppc-dev@ozlabs.org, netdev@vger.kernel.org, Wolfgang Denk , Piotr Ziecik List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Grant Likely 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. :-) Multiplatform between 512x and 8xx is currently impossible for other reasons (512x and CPM2 is another matter). That said, less ifdefs would be nice. -Scott