From patchwork Thu Aug 20 13:57:36 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 42935 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n7KE27gx017510 for ; Thu, 20 Aug 2009 14:02:07 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754249AbZHTOCE (ORCPT ); Thu, 20 Aug 2009 10:02:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754315AbZHTOCE (ORCPT ); Thu, 20 Aug 2009 10:02:04 -0400 Received: from wa-out-1112.google.com ([209.85.146.178]:34776 "EHLO wa-out-1112.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754249AbZHTOCC (ORCPT ); Thu, 20 Aug 2009 10:02:02 -0400 Received: by wa-out-1112.google.com with SMTP id j5so959023wah.21 for ; Thu, 20 Aug 2009 07:02:04 -0700 (PDT) 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=DJhURf/+SqOYJlpFeuoVvCqeTceu7B3ws++TMwwG4KQ=; b=II4RSoZvgv7aEQE2AsOPHXqg8pom6oRsVQCf7cUNmSRgDxxMvMMDTDvvQWTsZzG2ur lqcBfuw6wW9eO6GGYCgDAVirgOkN4jAFfWJwGRlWFDicx0B+V3cdCnZVBCr1D9NtzbNb FR+ZhB1Xv4jiIbEKOc/7QvXLlrxlMdfaV81vk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:subject; b=Yf8OeKHwaMkBb1NNzu36hgfG5fBhuk8Z5qNpDRsqU3Yt84jgH6ErzDqroqoCd0jPmd 4b6hwm/myVDBHI3+/3s8ThF1QsNtAjKWztY7wbgXih3qTSRFWxP5wfhHYhJJP6f0aVGT sgksgXzLGinvQIgXmwh0F4DeW33G8//bGvcYk= Received: by 10.115.100.13 with SMTP id c13mr9175512wam.65.1250776924355; Thu, 20 Aug 2009 07:02:04 -0700 (PDT) Received: from rx1.opensource.se (210.5.32.202.bf.2iij.net [202.32.5.210]) by mx.google.com with ESMTPS id 23sm189122pzk.12.2009.08.20.07.02.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 20 Aug 2009 07:02:03 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: Magnus Damm , lethal@linux-sh.org Date: Thu, 20 Aug 2009 22:57:36 +0900 Message-Id: <20090820135736.23974.96123.sendpatchset@rx1.opensource.se> Subject: [PATCH] sh: i2c compile fix for kfr2r09 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org From: Magnus Damm Fix the kfr2r09 board code so it compiles if CONFIG_I2C=n. Signed-off-by: Magnus Damm --- arch/sh/boards/mach-kfr2r09/setup.c | 7 +++++++ 1 file changed, 7 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 0001/arch/sh/boards/mach-kfr2r09/setup.c +++ work/arch/sh/boards/mach-kfr2r09/setup.c 2009-08-20 12:48:09.000000000 +0900 @@ -219,6 +219,7 @@ static struct platform_device *kfr2r09_d #define BSC_CS4WCR 0xfec10030 #define PORT_MSELCRB 0xa4050182 +#ifdef CONFIG_I2C static int kfr2r09_usb0_gadget_i2c_setup(void) { struct i2c_adapter *a; @@ -261,6 +262,12 @@ static int kfr2r09_usb0_gadget_i2c_setup return 0; } +#else +static int kfr2r09_usb0_gadget_i2c_setup(void) +{ + return -ENODEV; +} +#endif static int kfr2r09_usb0_gadget_setup(void) {