From patchwork Mon Aug 27 06:42:11 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 10968 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 72C7B23E02 for ; Mon, 27 Aug 2012 06:44:37 +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 8EA67A18B88 for ; Mon, 27 Aug 2012 06:44:11 +0000 (UTC) Received: by iafj25 with SMTP id j25so4938817iaf.11 for ; Sun, 26 Aug 2012 23:44:36 -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=7cybm2CQpELcivEtTTPjI5z4anfG6bhl6oAVWrNKwZ4=; b=JjnEoFZsVQymkpMBBq88atWDTpA6NF/AUerKnRCHKEJLndxelDOSRu3UqAdTjKFx+D srxdG/jrbzfpxE/ujdKQkDQ5JQ7dfPYPtRe+eOjDlZIV4wer8yTL4CWYtT49IdT+/U65 +dNIpqnt193xkotnPphIKy3ndmbZdv+3h82kudTubX3IF0Lxb8YEqC6DfJEEfT1bwrJj uC/UG2h4xOMuJlOUS1gd7uJUPzSyx1Qs22o73a0aeQI4ftnWVreReeuwazC9DXf/H/Yh Q7q8OirLewOGtosKgH8cIgJiECesCgf0IkHjAZ7g5FmBGU3VMHj0fHm6BJAsfAmNqjQ/ vlqA== Received: by 10.50.159.196 with SMTP id xe4mr9048180igb.43.1346049876487; Sun, 26 Aug 2012 23:44:36 -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 ex8csp423845igc; Sun, 26 Aug 2012 23:44:35 -0700 (PDT) Received: by 10.66.83.234 with SMTP id t10mr27889682pay.39.1346049875622; Sun, 26 Aug 2012 23:44:35 -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 px5si30580336pbb.292.2012.08.26.23.44.35 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 26 Aug 2012 23:44:35 -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 e7so2581401dad.37 for ; Sun, 26 Aug 2012 23:44:35 -0700 (PDT) Received: by 10.66.83.129 with SMTP id q1mr28086091pay.4.1346049875124; Sun, 26 Aug 2012 23:44:35 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id pa6sm14057161pbc.47.2012.08.26.23.44.30 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 26 Aug 2012 23:44:34 -0700 (PDT) From: Sachin Kamat To: linux-mmc@vger.kernel.org Cc: cjb@laptop.org, brucechang@via.com.tw, HaraldWelte@viatech.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH] mmc: via-sdmmc: Use module_pci_driver Date: Mon, 27 Aug 2012 12:12:11 +0530 Message-Id: <1346049731-21085-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQmFzaSGQEtu6xjB7COnAs0UcFkzz8/8PAfJu7F2FfofnX9kOCBDdIZH/lk/MXiziXI4Y9sB module_pci_driver makes the code simpler by eliminating module_init and module_exit calls. Signed-off-by: Sachin Kamat Acked-by: Harald Welte --- drivers/mmc/host/via-sdmmc.c | 16 +--------------- 1 files changed, 1 insertions(+), 15 deletions(-) diff --git a/drivers/mmc/host/via-sdmmc.c b/drivers/mmc/host/via-sdmmc.c index 4b83c43..f18bece 100644 --- a/drivers/mmc/host/via-sdmmc.c +++ b/drivers/mmc/host/via-sdmmc.c @@ -1337,21 +1337,7 @@ static struct pci_driver via_sd_driver = { .resume = via_sd_resume, }; -static int __init via_sd_drv_init(void) -{ - pr_info(DRV_NAME ": VIA SD/MMC Card Reader driver " - "(C) 2008 VIA Technologies, Inc.\n"); - - return pci_register_driver(&via_sd_driver); -} - -static void __exit via_sd_drv_exit(void) -{ - pci_unregister_driver(&via_sd_driver); -} - -module_init(via_sd_drv_init); -module_exit(via_sd_drv_exit); +module_pci_driver(via_sd_driver); MODULE_LICENSE("GPL"); MODULE_AUTHOR("VIA Technologies Inc.");