From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756733AbbIUNCJ (ORCPT ); Mon, 21 Sep 2015 09:02:09 -0400 Received: from mail-oi0-f42.google.com ([209.85.218.42]:35298 "EHLO mail-oi0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752966AbbIUNCI convert rfc822-to-8bit (ORCPT ); Mon, 21 Sep 2015 09:02:08 -0400 MIME-Version: 1.0 In-Reply-To: <55FFC204.9000903@ti.com> References: <1442607076-26681-1-git-send-email-jcormier@criticallink.com> <1442607076-26681-2-git-send-email-jcormier@criticallink.com> <55FFC204.9000903@ti.com> From: Jon Cormier Date: Mon, 21 Sep 2015 09:01:47 -0400 Message-ID: Subject: Re: [alsa-devel] [PATCH RFC 1/7] ASoC: tlv320aic26: Add device tree binding To: Peter Ujfalusi Cc: Liam Girdwood , alsa-devel@alsa-project.org, Bob Duke , Mark Brown , linux-kernel@vger.kernel.org, Takashi Iwai , Jyri Sarha , Mike Williamson , Greg Gluszek , Misael Lopez Cruz Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 21, 2015 at 4:38 AM, Peter Ujfalusi wrote: > On 09/18/2015 11:11 PM, Cormier, Jonathan wrote: > >> diff --git a/sound/soc/codecs/tlv320aic26.c b/sound/soc/codecs/tlv320aic26.c >> index 620ab9ea1ef0..91fdd96648bd 100644 >> --- a/sound/soc/codecs/tlv320aic26.c >> +++ b/sound/soc/codecs/tlv320aic26.c >> @@ -370,10 +370,20 @@ static int aic26_spi_remove(struct spi_device *spi) >> return 0; >> } >> >> +#if defined(CONFIG_OF) > > You don't need the #ifdef here > >> +static const struct of_device_id tlv320aic26_of_match[] = { >> + { .compatible = "ti,tlv320aic26", }, >> + {}, >> +}; >> +#endif >> + >> static struct spi_driver aic26_spi = { >> .driver = { >> .name = "tlv320aic26-codec", >> .owner = THIS_MODULE, >> +#if defined(CONFIG_OF) > > neither here. > >> + .of_match_table = of_match_ptr(tlv320aic26_of_match), >> +#endif >> }, >> .probe = aic26_spi_probe, >> .remove = aic26_spi_remove, >> > > > -- > Péter Ok thanks. -- Jonathan Cormier CriticalLink