From patchwork Mon Aug 27 06:29:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 10967 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 6CA7D23E29 for ; Mon, 27 Aug 2012 06:31:40 +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 8F67AA18442 for ; Mon, 27 Aug 2012 06:31:14 +0000 (UTC) Received: by iafj25 with SMTP id j25so4923484iaf.11 for ; Sun, 26 Aug 2012 23:31:39 -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=21Wf6JKVD39DLxcImDSyUvgq/roDlR4FivLTtcnfyq0=; b=VgX2x4aDPryb1VzrS4yt2f6K30N0msddswVmYG673kGBqWNYtFrVB5yGA1kE2bImjW WUyBHE0+y4mUWIaquFw/MQWxTaMbWjn7Soki7ZW8YRKdepmgteSvahMXx8WT1Z4fMAjP j41roT/1zH8rmIMqEDX64eSx35iT2+SaClIXzfCp1fQ+fGG7nsqKuXFQG7jgKflD1EX7 0wk8s8MSW9qqU+cIdy4/SAqL8cf860o4sX9RnTfLAWgvdQkEEcnSSfMBJEC1XavInmpB CcHIOxWm7SRmQpsZOvPzGAGPuIjcqoRxaa9UxBI6fLuqLkEXGRjiI6D+g+cCMim6X80Q w1IQ== Received: by 10.50.180.129 with SMTP id do1mr9147094igc.28.1346049099430; Sun, 26 Aug 2012 23:31:39 -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 ex8csp423560igc; Sun, 26 Aug 2012 23:31:39 -0700 (PDT) Received: by 10.68.222.170 with SMTP id qn10mr31672653pbc.114.1346049098786; Sun, 26 Aug 2012 23:31:38 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id pn6si30590613pbb.40.2012.08.26.23.31.38 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 26 Aug 2012 23:31:38 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.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 pbcmd12 with SMTP id md12so7434402pbc.37 for ; Sun, 26 Aug 2012 23:31:38 -0700 (PDT) Received: by 10.68.231.233 with SMTP id tj9mr31805047pbc.39.1346049098199; Sun, 26 Aug 2012 23:31:38 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id st6sm14034211pbc.58.2012.08.26.23.31.35 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 26 Aug 2012 23:31:37 -0700 (PDT) From: Sachin Kamat To: linux-mmc@vger.kernel.org Cc: cjb@laptop.org, sachin.kamat@linaro.org, patches@linaro.org, shashidharh@vayavyalabs.com Subject: [PATCH] mmc: dw_mmc-pci: Use module_pci_driver Date: Mon, 27 Aug 2012 11:59:17 +0530 Message-Id: <1346048957-18493-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQn90q9k9zEpQc6CFX6o0Bjpw7q5a8vX7ZOPUSGe3Ic0Dv8yh+kyrvC/49UxYmUlfbkJ2Nc6 module_pci_driver makes the code simpler by eliminating module_init and module_exit calls. Signed-off-by: Sachin Kamat --- drivers/mmc/host/dw_mmc-pci.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/drivers/mmc/host/dw_mmc-pci.c b/drivers/mmc/host/dw_mmc-pci.c index dc0d25a..f5ab03d 100644 --- a/drivers/mmc/host/dw_mmc-pci.c +++ b/drivers/mmc/host/dw_mmc-pci.c @@ -140,18 +140,7 @@ static struct pci_driver dw_mci_pci_driver = { }, }; -static int __init dw_mci_init(void) -{ - return pci_register_driver(&dw_mci_pci_driver); -} - -static void __exit dw_mci_exit(void) -{ - pci_unregister_driver(&dw_mci_pci_driver); -} - -module_init(dw_mci_init); -module_exit(dw_mci_exit); +module_pci_driver(dw_mci_pci_driver); MODULE_DESCRIPTION("DW Multimedia Card PCI Interface driver"); MODULE_AUTHOR("Shashidhar Hiremath ");