From patchwork Wed Jun 24 02:56:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 6664631 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8C02BC05AC for ; Wed, 24 Jun 2015 02:56:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BB7B92060D for ; Wed, 24 Jun 2015 02:56:56 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 8822B2060B for ; Wed, 24 Jun 2015 02:56:55 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 7CCF4265815; Wed, 24 Jun 2015 04:56:54 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 4A5DE2657C6; Wed, 24 Jun 2015 04:56:44 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id EC0B62657DD; Wed, 24 Jun 2015 04:56:43 +0200 (CEST) Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) by alsa0.perex.cz (Postfix) with ESMTP id F17252657C6 for ; Wed, 24 Jun 2015 04:56:37 +0200 (CEST) Received: by pactm7 with SMTP id tm7so19328590pac.2 for ; Tue, 23 Jun 2015 19:56:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:content-type:mime-version:content-transfer-encoding; bh=25dT4vknFBq/wyNXA0zN0q4BuSP74tLkXAQRk215kDc=; b=mFfLS+lUgbMebG3GaZ0C9iKNhL6v/LhN4glK4FIc6c3QvDOa5OpPU+Oltc8Kbnrh1o U717QbhAK1ET7Pnjgxk6I9nqaTa97odpwbr5xbJwu3ITy7b+Ll62Emw1CnYz5EaNZO8K 710/u8VY1BOPg1ckmOLOH+lqbm1JQ91gmZli4/RWRDPvXKxPAqiTGTn9IyzhTXpBYGUY +lIEVTVZIIy/5JQ4KAXU8k4CTQoQR67gC7m6pHwcrjKsgI5lwB93Avj3Xmic4SekYK1k 9VLjFmsDqLpy+CaLn6kkAe02P/wd93PRhm5tp211B9cMV6QimfChjQRMGM6RANdnn8TF h2Iw== X-Gm-Message-State: ALoCoQka2rL8pRyFp3v6IFw1M3O076bJQ2zLIqgVGGozgcQMTjE52YWiQqiIj972JvyFUgMs9wFW X-Received: by 10.66.190.228 with SMTP id gt4mr76011275pac.72.1435114596915; Tue, 23 Jun 2015 19:56:36 -0700 (PDT) Received: from phoenix.local (36-239-240-88.dynamic-ip.hinet.net. [36.239.240.88]) by mx.google.com with ESMTPSA id je4sm24765625pbb.17.2015.06.23.19.56.34 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Jun 2015 19:56:35 -0700 (PDT) Message-ID: <1435114591.2082.2.camel@ingics.com> From: Axel Lin To: Mark Brown Date: Wed, 24 Jun 2015 10:56:31 +0800 In-Reply-To: <1435114524.2082.1.camel@ingics.com> References: <1435114524.2082.1.camel@ingics.com> X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 Mime-Version: 1.0 Cc: Marek Belisko , Liam Girdwood , alsa-devel@alsa-project.org Subject: [alsa-devel] [PATCH 2/2] ASoC: gtm601: Remove .owner field from platform driver X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Remove .owner field because the core will set it. Also clean up the code a bit to fix indent and make soc_codec_dev_gtm601 const. Signed-off-by: Axel Lin --- sound/soc/codecs/gtm601.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sound/soc/codecs/gtm601.c b/sound/soc/codecs/gtm601.c index a696e3e..a652f19 100644 --- a/sound/soc/codecs/gtm601.c +++ b/sound/soc/codecs/gtm601.c @@ -51,7 +51,7 @@ struct snd_soc_dai_driver gtm601_dai = { }, }; -static struct snd_soc_codec_driver soc_codec_dev_gtm601 = { +static const struct snd_soc_codec_driver soc_codec_dev_gtm601 = { .dapm_widgets = gtm601_dapm_widgets, .num_dapm_widgets = ARRAY_SIZE(gtm601_dapm_widgets), .dapm_routes = gtm601_dapm_routes, @@ -80,11 +80,9 @@ MODULE_DEVICE_TABLE(of, gtm601_codec_of_match); static struct platform_driver gtm601_codec_driver = { .driver = { - .name = "gtm601", - .owner = THIS_MODULE, - .of_match_table = of_match_ptr(gtm601_codec_of_match), + .name = "gtm601", + .of_match_table = of_match_ptr(gtm601_codec_of_match), }, - .probe = gtm601_platform_probe, .remove = gtm601_platform_remove, };