From patchwork Mon Aug 27 10:15:31 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 10969 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 0D48123EFF for ; Mon, 27 Aug 2012 10:17:55 +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 BE73CA18BD2 for ; Mon, 27 Aug 2012 10:17:28 +0000 (UTC) Received: by iafj25 with SMTP id j25so5223875iaf.11 for ; Mon, 27 Aug 2012 03:17:54 -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=T8Ix01CzvO8fsFWOClnLC2wTl9WnxRyC/ZchlcLX6U0=; b=HA0ULD5mY0fNM+kQPzb/9EeQ8o5Y6fqS7hF5ZgVvHgD33H6HuM7VqF8CBSqFV5UMme yhQNI3x1mdSVLccuY8+oFSqri7F9a3ShSRthoW4fDcyPs06kdtqsNcYhDE4n/yzMEUrJ r8Je6MliTomQ1pVddLWdb5Z1f4g6+oif8+ZadNMTUXWuIBgZJumGMhhjyzzp/4Oi2Pcq Y4/LO1iyUscVSCXwJLjuJXxDeHypt9P1l4F2sf2wyDlCSiDKM/N8Si6v7R1BE9KlFdX1 qmC8g/dF5rfYemyMdBKcuPeBXuA84fBoDCU2EmMuKJc2w10CiuqK5IFIrYS5JV7LbRnJ qerw== Received: by 10.50.10.201 with SMTP id k9mr9617926igb.28.1346062674073; Mon, 27 Aug 2012 03:17:54 -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 ex8csp433424igc; Mon, 27 Aug 2012 03:17:53 -0700 (PDT) Received: by 10.68.193.194 with SMTP id hq2mr33601506pbc.93.1346062673048; Mon, 27 Aug 2012 03:17:53 -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 pb4si31400089pbc.240.2012.08.27.03.17.52 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 27 Aug 2012 03:17:53 -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 e7so2717246dad.37 for ; Mon, 27 Aug 2012 03:17:52 -0700 (PDT) Received: by 10.66.75.201 with SMTP id e9mr29029404paw.54.1346062672505; Mon, 27 Aug 2012 03:17:52 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id qo8sm14425943pbb.19.2012.08.27.03.17.49 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 27 Aug 2012 03:17:51 -0700 (PDT) From: Sachin Kamat To: linux-crypto@vger.kernel.org Cc: linux-geode@lists.infradead.org, herbert@gondor.apana.org.au, davem@davemloft.net, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH] crypto: geode-aes: Use module_pci_driver Date: Mon, 27 Aug 2012 15:45:31 +0530 Message-Id: <1346062531-27827-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQlVLV8GexiRD9QC7iLk8BJi9P4LqnSEfEtPyWQNLT8ivZ8fz47pIpUzfgc6UsPRl03x7mok module_pci_driver makes the code simpler by eliminating module_init and module_exit calls. Signed-off-by: Sachin Kamat --- drivers/crypto/geode-aes.c | 15 +-------------- 1 files changed, 1 insertions(+), 14 deletions(-) diff --git a/drivers/crypto/geode-aes.c b/drivers/crypto/geode-aes.c index 933fb4b4..51f196d 100644 --- a/drivers/crypto/geode-aes.c +++ b/drivers/crypto/geode-aes.c @@ -585,21 +585,8 @@ static struct pci_driver geode_aes_driver = { .remove = __devexit_p(geode_aes_remove) }; -static int __init -geode_aes_init(void) -{ - return pci_register_driver(&geode_aes_driver); -} - -static void __exit -geode_aes_exit(void) -{ - pci_unregister_driver(&geode_aes_driver); -} +module_pci_driver(geode_aes_driver); MODULE_AUTHOR("Advanced Micro Devices, Inc."); MODULE_DESCRIPTION("Geode LX Hardware AES driver"); MODULE_LICENSE("GPL"); - -module_init(geode_aes_init); -module_exit(geode_aes_exit);