From patchwork Tue Jun 3 02:56:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 4284811 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 419C39F387 for ; Tue, 3 Jun 2014 02:57:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4FF8120259 for ; Tue, 3 Jun 2014 02:57:12 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id C84192021F for ; Tue, 3 Jun 2014 02:57:10 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 33D4E26559B; Tue, 3 Jun 2014 04:57:09 +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 1EEBB26558E; Tue, 3 Jun 2014 04:56:58 +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 B11BE265591; Tue, 3 Jun 2014 04:56:56 +0200 (CEST) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by alsa0.perex.cz (Postfix) with ESMTP id 87F27265582 for ; Tue, 3 Jun 2014 04:56:48 +0200 (CEST) Received: by mail-vc0-f170.google.com with SMTP id la4so6077588vcb.15 for ; Mon, 02 Jun 2014 19:56:47 -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:content-type :mime-version:content-transfer-encoding; bh=t5EaD6EVx2uCJ2q0Ks21qpFR48k5NqrdosKTNCGH/Hk=; b=YoDpGoISCtCnxIXwwtpTPW5DFc2XWiI4wgT9lJlHyxKMwSZQQ39Zo/YtX2tDtII6Kx OsRbw/wvEZtWGN1Wj6/RynAI/X15ZYUZ6pZNzsMe0T9x5r6+jdlrTBM9n/wnx8/r/zmH 3SjSC883JDn7crz5NbxKl8+R97bC60TbXz4p0yxIKefXIhF8WbqvpwgV0wyIN4lZJShE KHm2/DwnbfkBWrux/+afPs4OSa3+VYfuo1Im1j4y0XkKgS8oTpse8nS+RhoK+6VLxiz4 4ZEgVLKbj4P2SaEKpQz1d4PoJ00iDzw9e2K2VBm8ksBBxt57PHOo3kIFZurpyjsRDCE1 wDfw== X-Gm-Message-State: ALoCoQkOjSrqUxt+okWt5zcNI94bNMqbaclmDaY9CHl8Z+NtHIFkeukR0XNC0RqcbGJwEjTDYzZt X-Received: by 10.52.138.14 with SMTP id qm14mr3671704vdb.49.1401764207252; Mon, 02 Jun 2014 19:56:47 -0700 (PDT) Received: from [192.168.0.102] (218-164-129-98.dynamic.hinet.net. [218.164.129.98]) by mx.google.com with ESMTPSA id fa8sm26036315vdb.11.2014.06.02.19.56.45 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 02 Jun 2014 19:56:46 -0700 (PDT) Message-ID: <1401764201.15216.0.camel@phoenix> From: Axel Lin To: Mark Brown Date: Tue, 03 Jun 2014 10:56:41 +0800 X-Mailer: Evolution 3.8.4-0ubuntu1 Mime-Version: 1.0 Cc: Oder Chiou , alsa-devel@alsa-project.org, Liam Girdwood Subject: [alsa-devel] [PATCH 1/3] ASoC: rt5677: Convert to use module_i2c_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 Signed-off-by: Axel Lin Tested-by: Oder Chiou --- sound/soc/codecs/rt5677.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/sound/soc/codecs/rt5677.c b/sound/soc/codecs/rt5677.c index 833231e..60fff7f 100644 --- a/sound/soc/codecs/rt5677.c +++ b/sound/soc/codecs/rt5677.c @@ -3480,18 +3480,7 @@ static struct i2c_driver rt5677_i2c_driver = { .remove = rt5677_i2c_remove, .id_table = rt5677_i2c_id, }; - -static int __init rt5677_modinit(void) -{ - return i2c_add_driver(&rt5677_i2c_driver); -} -module_init(rt5677_modinit); - -static void __exit rt5677_modexit(void) -{ - i2c_del_driver(&rt5677_i2c_driver); -} -module_exit(rt5677_modexit); +module_i2c_driver(rt5677_i2c_driver); MODULE_DESCRIPTION("ASoC RT5677 driver"); MODULE_AUTHOR("Oder Chiou ");