Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4015075imm; Mon, 18 Jun 2018 07:50:55 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI9Fe0/YZj1cqvxlhjfWWqPglaH19Vy6DQMEFS1MWwGL+ZZNgFqHL54D5CBSY1tZg1flEfL X-Received: by 2002:a63:5401:: with SMTP id i1-v6mr11055859pgb.187.1529333455711; Mon, 18 Jun 2018 07:50:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529333455; cv=none; d=google.com; s=arc-20160816; b=mHeC1MgzdVcwXsdnkPGjw5iCR86Zw8GOaj8ZVtksqGUfWtVGkBPV0GPNR8B09V3DlI xn86GlbOhETk41sGhiBEjqBpxSHDozfxhS6X9bMtAHuKBWHxj7Vtq2NWbvZ0v5y09iKN VGMj+Bn+OIY5nhf3mqT0Fvsq6DC3ZQ+zut10PLfEppzfs4VgS/GWA6tqSaSKZNmIPiDr g+53GS1EjEEyyBHKJVhee4vgNzkxs+Z5vpo3wtKOHrK+pdhIsRquR5qZjKo29gU7U7W8 bxXVi1xcfZgQDqYAMIeTWi42KV/6RhdYEnfOFOweNgvmXwumDJ2NUd3BLMlbinHWTtJ0 yMwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=IdpB9pbAd6YpbJ6jAgx2JZoljKxYox+glG3obiIUmlI=; b=W8qr4trTfKYogBH4H+Hm8qNj+ZRdA475tFZs7Z6D4gD3YUfAG0lZZ5oSzFCN1ObMtO KleahSgtR1pY2KHmaVbTSpSrPInxEjjy7lwUz2zcMAhLFD4T3CzYmGwxiCZevTMHeAy4 WMolKM6Nw1KBc3mfsaMZuea8fnd40tE/kAGnBE4VsV+f2kAWjbnYbNixepViWu/pYeXm B32szIuReEpNOFVsaBpCAAPaPO5idEVfyDDD562dTEXcNwQoyOGHeBxFF7XrVbXeq2uX 2cnPVycI+LtNZkzMEP+P6bv3QgOdz1lriUvTGtndIkZTWfQCf3Jla+hhQVvSUWdnDabv naFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HZI6hAjL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 67-v6si12139104pge.373.2018.06.18.07.50.41; Mon, 18 Jun 2018 07:50:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HZI6hAjL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935282AbeFROsz (ORCPT + 99 others); Mon, 18 Jun 2018 10:48:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:49460 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934674AbeFROsy (ORCPT ); Mon, 18 Jun 2018 10:48:54 -0400 Received: from mail-io0-f176.google.com (mail-io0-f176.google.com [209.85.223.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 90744208E0; Mon, 18 Jun 2018 14:48:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1529333333; bh=IdpB9pbAd6YpbJ6jAgx2JZoljKxYox+glG3obiIUmlI=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=HZI6hAjLLq61mkyXhYw/1hjLiDjn5ia9n2ImmDO/sOeIyXAHgvHUyxZeTAhehO2hE bbXI2D1h9q0BZ0pkBUN/ikCORasMsiE5BFmnDdry7xbzQTSi9uXRIfWj2rXDayplR9 uI8l3sd6/7IBEDu97yR1hw/RXsoJUHMPEgTQ/9GA= Received: by mail-io0-f176.google.com with SMTP id d22-v6so17021671iof.13; Mon, 18 Jun 2018 07:48:53 -0700 (PDT) X-Gm-Message-State: APt69E11XURiQNx809RmeETRQbIYpqa+C5/fFDXNJ6maTwdKhRiI66Dr dmlWesGPq2CWFNaERxMuuWikSISRAD5O3+moWQ== X-Received: by 2002:a6b:bd47:: with SMTP id n68-v6mr10926662iof.111.1529333332858; Mon, 18 Jun 2018 07:48:52 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:6403:0:0:0:0:0 with HTTP; Mon, 18 Jun 2018 07:48:32 -0700 (PDT) In-Reply-To: <20180618123932.GA28476@centauri.lan> References: <20180614111138.8923-1-niklas.cassel@linaro.org> <20180614111138.8923-6-niklas.cassel@linaro.org> <20180618110642.GA6928@sirena.org.uk> <20180618123932.GA28476@centauri.lan> From: Rob Herring Date: Mon, 18 Jun 2018 08:48:32 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 5/7] ASoC: qdsp6: Add depends on OF To: Niklas Cassel Cc: Mark Brown , Frank Rowand , Andy Gross , Patrick Lai , Banajit Goswami , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , linux-arm-msm , Linux-ALSA , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 18, 2018 at 6:39 AM, Niklas Cassel wrote: > On Mon, Jun 18, 2018 at 12:06:42PM +0100, Mark Brown wrote: >> On Thu, Jun 14, 2018 at 01:11:36PM +0200, Niklas Cassel wrote: >> > of_platform_device_destroy is only defined when building >> > with CONFIG_OF=y. Add a depends on OF. >> >> Is it sensible that of_platform_device_destroy() is only defined when >> building with CONFIG_OF=y? > > I'm redirecting that question to the device tree maintainers. > > There are a few of_* functions in include/linux/of_platform.h > that are only defined when CONFIG_OF=y: > > of_platform_device_create() > of_platform_device_destroy() > of_platform_bus_probe() > of_device_alloc() > > Rob, Frank, do you want me to create static inline dummy versions of these? No, because generally you should not be using these functions directly. Yes, there are some users, but if you look at the tree, there are few or isolated (PowerPC) users. Using of_platform_populate/of_platform_depopulate is preferred. Rob