From patchwork Thu Feb 25 11:10:54 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 81970 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1PBBGKr029977 for ; Thu, 25 Feb 2010 11:11:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758946Ab0BYLLP (ORCPT ); Thu, 25 Feb 2010 06:11:15 -0500 Received: from mail-gx0-f217.google.com ([209.85.217.217]:45380 "EHLO mail-gx0-f217.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758862Ab0BYLLP (ORCPT ); Thu, 25 Feb 2010 06:11:15 -0500 Received: by gxk9 with SMTP id 9so5612832gxk.8 for ; Thu, 25 Feb 2010 03:11:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:date:message-id :subject; bh=DVoILgje9hbjvXArBxLl3+505WT5CUTiAvMMP8b6Y1g=; b=GT7GkhBYy/RSHyNkkF3xH1IUoVfER5611aCEGs9Px2ZHXV1KYSSPytt2/ILfZvozk5 BaI5mfZalO2p175Te8Gt0lNJRskPLWMV2fm2np74PckTwlxwwg80AtDjsDfhslEbfM8M DmTpDrj/uJ4D0sX85q9qB6xUECPw7knlz85M0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:subject; b=R/Yf4eUjIkqnuiousqaBOlVTjsqnclfZgZO0pkpkIZIUSGpdJHFJJ4IvKgOvfEN3kI ZvVim1N8YyDn8Uz2i3v+ZjMCOikOgAv51U2fhCZe8pFA3rO7lL8PeYo9WkDQr+FqjOmo nZA889zVomQUPdSKmGtUY2soK8VFNGUGpkSys= Received: by 10.101.39.2 with SMTP id r2mr1416316anj.67.1267096274325; Thu, 25 Feb 2010 03:11:14 -0800 (PST) Received: from ?127.0.0.1? (49.14.32.202.bf.2iij.net [202.32.14.49]) by mx.google.com with ESMTPS id 14sm6504082gxk.11.2010.02.25.03.11.12 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 25 Feb 2010 03:11:13 -0800 (PST) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: Magnus Damm , lethal@linux-sh.org Date: Thu, 25 Feb 2010 20:10:54 +0900 Message-Id: <20100225111054.6879.44864.sendpatchset@t400s> Subject: [PATCH] sh: ecovec build fix for CONFIG_I2C=n Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 25 Feb 2010 11:11:16 +0000 (UTC) --- 0006/arch/sh/boards/mach-ecovec24/setup.c +++ work/arch/sh/boards/mach-ecovec24/setup.c 2010-02-25 19:33:55.000000000 +0900 @@ -773,6 +773,7 @@ static struct platform_device *ecovec_de &fsi_device, }; +#ifdef CONFIG_I2C #define EEPROM_ADDR 0x50 static u8 mac_read(struct i2c_adapter *a, u8 command) { @@ -815,6 +816,12 @@ static void __init sh_eth_init(struct sh msleep(10); } } +#else +static void __init sh_eth_init(struct sh_eth_plat_data *pd) +{ + pr_err("unable to read sh_eth MAC address\n"); +} +#endif #define PORT_HIZA 0xA4050158 #define IODRIVEA 0xA405018A