From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753702AbYEEEYx (ORCPT ); Mon, 5 May 2008 00:24:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751379AbYEEEYm (ORCPT ); Mon, 5 May 2008 00:24:42 -0400 Received: from ozlabs.org ([203.10.76.45]:44982 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751161AbYEEEYl (ORCPT ); Mon, 5 May 2008 00:24:41 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18462.35282.374180.770237@cargo.ozlabs.ibm.com> Date: Mon, 5 May 2008 14:15:14 +1000 From: Paul Mackerras To: Jochen Friedrich Cc: Kumar Gala , Jean Delvare , Scott Wood , "Kernel, Linux" , linuxppc-dev list , Linux I2C , Jon Smirl , Laurent Pinchart , David Miller , Stephen Rothwell Subject: Re: [PATCH] [POWERPC] Fix of_i2c include for module compilation In-Reply-To: <481C5DD0.5090503@scram.de> References: <481C5DD0.5090503@scram.de> X-Mailer: VM 7.19 under Emacs 22.1.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jochen Friedrich writes: > -#ifdef CONFIG_OF_I2C > +#if defined(CONFIG_OF_I2C) || defined(CONFIG_OF_I2C_MODULE) > > void of_register_i2c_devices(struct i2c_adapter *adap, > struct device_node *adap_node); Why do we have that ifdef there at all? There's only that one external declaration within it, so the #ifdef and #endif could just be removed. If the ifdef hadn't been there in the first place we wouldn't have had this problem. Paul.