From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754770AbbAaRIS (ORCPT ); Sat, 31 Jan 2015 12:08:18 -0500 Received: from mail-qa0-f51.google.com ([209.85.216.51]:59291 "EHLO mail-qa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754027AbbAaRIP (ORCPT ); Sat, 31 Jan 2015 12:08:15 -0500 Date: Sat, 31 Jan 2015 12:08:12 -0500 From: Tejun Heo To: Guenter Roeck Cc: Hans de Goede , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, Gregory CLEMENT Subject: Re: [PATCH] ata: libahci: Use of_platform_device_create only if supported Message-ID: <20150131170812.GC3088@htj.dyndns.org> References: <1422721938-1542-1-git-send-email-linux@roeck-us.net> <20150131164517.GB3088@htj.dyndns.org> <54CD0890.7050800@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54CD0890.7050800@roeck-us.net> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 31, 2015 at 08:53:36AM -0800, Guenter Roeck wrote: > I agree, it is weird, as is the whole "all API functions associated > with OF_ADDRESS are handled differently on sparc" thing. But that > is neither new nor something I can fix. Out of curiousity, why isn't the header file doing the following? #ifdef CONFIG_OF_ADDRESS void of_platform_device_create(blah); ... #else static inline void of_platform_device_create(blah) { } #endif -- tejun