Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3873401imm; Mon, 18 Jun 2018 05:40:31 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIQUuC0yrsxmW3qRWHJpqKcLBEr+lkm2OI274mwclZG6FRTijmsjhgLcqv0mDrwAPvT1sSG X-Received: by 2002:a63:8dca:: with SMTP id z193-v6mr10883083pgd.451.1529325631685; Mon, 18 Jun 2018 05:40:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529325631; cv=none; d=google.com; s=arc-20160816; b=rt2fgMo8EEyQhYLiarHX8xGWNES5O3uIV7w99aapO0vFXeoL5IMUwYkIK4CSVW7EdH of9lfKa9Q6/pk9+goW5aGRMkJdleR5P98XOVY+pVb87mnhXXDH9u9CuSt0T0rwjjlCtf sPIMHgHEv17rv/x5uoGIIC2Jxk5dmxlGEqpdua+24mHoqPFIrF9O8LSz+A+ad9zMjpBE QU3XyKxfy3vlMPT3UfI4Q41VK4LwJ2imeGx5DJRILp9JCRxmHSubvAD5eOT34Wc+KOh0 EAxoSsU0sDApg+vAlKDXXh8q7ZBujUKxrb+vFkJRJFUudPWXLKZbcroCWX6XoUbl07vv lBqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=r06CF2EtJ884SBqC0CJhFy9ZVM4kJlzWyOaNx8Ri0aA=; b=vONvobMmGMfk2H+12qphxO29X3nLwSycJlMbpzINVPpD0xyCCpxzAc41vGAMuI0KRp pF+lmTQp7DS7JS/igye/svZhxkFDU+73VvOkCLbVzhetiwNyJVIQazHtC82GkmgH68iE g15+M3r7hscI2Op6V02+ztUcIJViOXwOLxdncfLAJXbKru7iPs+EKeUjkNkCoHuqijkJ CJIJGfvCinPbcw0M/e1nJAJunzHFlE81e1OXVdNrAGY+2wAwNzsNqeXG+/RYZG1uJ3LW OotgRO5kC7WnDYik9/TuDn0113e3S0qZ2lDc7/TxFIHwxST4/kcoa6o8jLFf73coyIb5 6ZWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dwyixRgU; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s26-v6si11926325pgo.298.2018.06.18.05.40.17; Mon, 18 Jun 2018 05:40:31 -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=@linaro.org header.s=google header.b=dwyixRgU; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754315AbeFRMji (ORCPT + 99 others); Mon, 18 Jun 2018 08:39:38 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:46345 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754091AbeFRMjg (ORCPT ); Mon, 18 Jun 2018 08:39:36 -0400 Received: by mail-lf0-f66.google.com with SMTP id u5-v6so3172403lff.13 for ; Mon, 18 Jun 2018 05:39:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=r06CF2EtJ884SBqC0CJhFy9ZVM4kJlzWyOaNx8Ri0aA=; b=dwyixRgUuXgDNK287GyMnhgUHiPvdI3+nVN69mYrGE29ugDtR5awwk1bQz5AXqmh8N siWtnZsk/uQY2Kc2Qksxx1ZuisXG1ddz93xjQhVKkgxaDWcRZ7eRE3w765CH8CVM1I2h Y9zf/P0aTb4ZhNuewhhV30tq7Dagpq3s/XvII= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=r06CF2EtJ884SBqC0CJhFy9ZVM4kJlzWyOaNx8Ri0aA=; b=n8GSELdFAoYB59zsei9lhV1igb9Y1WdAJCG0OsSnYQl819DwPr71nn3Gc6MPo0R8Ro CMOpPuSCnEIXkdkO5SQiewhMaaxgGNstJbxzryL4WkfGMhJUXlEMECCJ9K0y4P4Fxxjv cGp+yqz3BiijehRm9JIBLNzM1rzpIJqj4CnWfzeTDbdk0dXkka1+BUxnHTvoN8c9Gkhf oD0je7rsyaOlFm6joevjogHxGzsrfWuFEZPcrLZvTH9FV6+9S+jIGUeLWFxApR9NJylV NzFYMlGoTqxI6UiCQ5stKa0pp0d0pfwnH2qQPiIMVwmRtkM89FTVdHsjCqQ2R36lUIFU Q9Og== X-Gm-Message-State: APt69E3TBuerO/Fo4umHusjy+tmuDWofiij47bL7q/7p1q/sGixxS4/p G+lOvbneNFT7dPPerf73W1JHlQ== X-Received: by 2002:a2e:5687:: with SMTP id k7-v6mr8491280lje.140.1529325575262; Mon, 18 Jun 2018 05:39:35 -0700 (PDT) Received: from centauri.lan (h-229-118.A785.priv.bahnhof.se. [5.150.229.118]) by smtp.gmail.com with ESMTPSA id g17-v6sm2694138ljg.27.2018.06.18.05.39.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Jun 2018 05:39:34 -0700 (PDT) Date: Mon, 18 Jun 2018 14:39:32 +0200 From: Niklas Cassel To: Mark Brown , robh+dt@kernel.org, frowand.list@gmail.com Cc: andy.gross@linaro.org, Patrick Lai , Banajit Goswami , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 5/7] ASoC: qdsp6: Add depends on OF Message-ID: <20180618123932.GA28476@centauri.lan> References: <20180614111138.8923-1-niklas.cassel@linaro.org> <20180614111138.8923-6-niklas.cassel@linaro.org> <20180618110642.GA6928@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180618110642.GA6928@sirena.org.uk> User-Agent: Mutt/1.10.0 (2018-05-17) 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 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? Regards, Niklas