Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751817Ab3FAUEf (ORCPT ); Sat, 1 Jun 2013 16:04:35 -0400 Received: from moutng.kundenserver.de ([212.227.17.10]:64348 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751915Ab3FAUE2 (ORCPT ); Sat, 1 Jun 2013 16:04:28 -0400 From: Arnd Bergmann To: Rob Herring Subject: Re: [PATCH 15/15] OF: remove #ifdef from linux/of_platform.h Date: Sat, 1 Jun 2013 22:03:38 +0200 User-Agent: KMail/1.12.2 (Linux/3.8.0-22-generic; KDE/4.3.2; x86_64; ; ) Cc: "linux-kernel@vger.kernel.org" , Grant Likely , patches@lists.linaro.org, Rob Herring , "linux-arm-kernel@lists.infradead.org" , Benjamin Herrenschmidt References: <1370038972-2318779-1-git-send-email-arnd@arndb.de> <1370038972-2318779-16-git-send-email-arnd@arndb.de> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201306012203.39133.arnd@arndb.de> X-Provags-ID: V02:K0:j6YMU0IZsT79b9HWXbWMa899Q2+O9kUF+fMeW0fDeVX GxJhCz8aIo6vdx8LNaO3dosXfcy5eh/bxmfmWeUzh7GXed9Mwy KE8us5tLOHuGhdH7xhYvCRrvQ5WnhY0vt5oUc/cTwF289PkmJ1 zOCm9nSxx8POpkKmU0GWC0wVllQd8WLbwuTgsdWvvoimTocfAd 25/lTd8173x9zc4KsoNsQ+1Bx+d60VJuyWeZQW1Dy99O1u7HTx hpx9rL3ohP2fKb7qngmlqquPf16tRqqT/wP99kWRDR8Trk5PWo y/nboPkO19BiULsNPMAMNtU7GqeA5DBhxkwH92qbww8wa2Hvrb 6sIrt1b1Rv+ucOjuxQUM= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1158 Lines: 26 On Saturday 01 June 2013, Rob Herring wrote: > On Fri, May 31, 2013 at 5:22 PM, Arnd Bergmann wrote: > > A lot of code uses the functions from of_platform.h when built for > > devicetree-enabled platforms but can also be built without them. > > In order to avoid using #ifdef everywhere in drivers, this > > makes all the function declarations visible, which means we > > can use "if (IS_ENABLED(CONFIG_OF))" in driver code and get build > > coverage over the code but let the compiler drop the reference > > in the object code. > > > > Signed-off-by: Arnd Bergmann > > Cc: Grant Likely > > Cc: Rob Herring > > I've got a more complete series for 3.11 that removes OF_DEVICE and > of_platform_driver completely. I'm waiting on ack from Ben H. Ok. Does your series also remove the #ifdef CONFIG_OF part from this header? Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/