From patchwork Mon Aug 27 11:30:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 10971 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id D827C23E56 for ; Mon, 27 Aug 2012 11:32:51 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 82756A180EE for ; Mon, 27 Aug 2012 11:32:25 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id j25so5332070iaf.11 for ; Mon, 27 Aug 2012 04:32:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=Gn23jQUprGPy5UWGXQ31M8sGOYW+OGIz7vvdYe2TSBo=; b=BI7rHG09sjcabVpZhDKtRj027+NZR++KRIK50wjHT69+znL3/XZS1iF1q7r+KKw3gP McRtoOVOWVB8BSuyoBYVL8AS1JHxI92J72dlHNqssSp2QiuKEU8rYP25MUfPXBuHAbJ2 8fOS443vMVwg6gSlV3qqKxzMieIE5AaLGGe6mHz8xAUwwxGKZLnIUbc6fCkr9w9WqNtf b02p65ErvHeGeNw2pI6GhPMqqhSE7b1Euyql9rUDWtEFJ8/j8KWAWaf1xZq7hv7XiEXI 0XOeHyR8kN7ZyF0iYOYOIS9VpqDzG2v9kORfUdHlJ65rXPy+7GjT7StFsyk0O76eD5m1 DzLA== Received: by 10.50.87.164 with SMTP id az4mr9677319igb.43.1346067171323; Mon, 27 Aug 2012 04:32:51 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp436063igc; Mon, 27 Aug 2012 04:32:50 -0700 (PDT) Received: by 10.66.77.71 with SMTP id q7mr29679764paw.0.1346067170500; Mon, 27 Aug 2012 04:32:50 -0700 (PDT) Received: from mail-pz0-f50.google.com (mail-pz0-f50.google.com [209.85.210.50]) by mx.google.com with ESMTPS id pb4si31738778pbc.60.2012.08.27.04.32.50 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 27 Aug 2012 04:32:50 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.210.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by dade7 with SMTP id e7so2759293dad.37 for ; Mon, 27 Aug 2012 04:32:50 -0700 (PDT) Received: by 10.66.89.6 with SMTP id bk6mr20769522pab.81.1346067170133; Mon, 27 Aug 2012 04:32:50 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id po4sm11461764pbb.13.2012.08.27.04.32.47 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 27 Aug 2012 04:32:49 -0700 (PDT) From: Sachin Kamat To: alsa-devel@alsa-project.org Cc: broonie@opensource.wolfsonmicro.com, tiwai@suse.de, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/3] ASoC: tlv320aic26: Use module_spi_driver Date: Mon, 27 Aug 2012 17:00:26 +0530 Message-Id: <1346067028-9534-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQneKRvVWlfmALKmn1Iaqj5R5+i9UrwD6xXOtlbpRugQagp4HZ3uq443kxR1zDRWjujg+eX1 module_spi_driver makes the code simpler by eliminating module_init and module_exit calls. Signed-off-by: Sachin Kamat --- sound/soc/codecs/tlv320aic26.c | 12 +----------- 1 files changed, 1 insertions(+), 11 deletions(-) diff --git a/sound/soc/codecs/tlv320aic26.c b/sound/soc/codecs/tlv320aic26.c index 85944e9..b1f6982 100644 --- a/sound/soc/codecs/tlv320aic26.c +++ b/sound/soc/codecs/tlv320aic26.c @@ -444,14 +444,4 @@ static struct spi_driver aic26_spi = { .remove = aic26_spi_remove, }; -static int __init aic26_init(void) -{ - return spi_register_driver(&aic26_spi); -} -module_init(aic26_init); - -static void __exit aic26_exit(void) -{ - spi_unregister_driver(&aic26_spi); -} -module_exit(aic26_exit); +module_spi_driver(aic26_spi);