From patchwork Mon Aug 27 06:27:02 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 10966 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 6964323E29 for ; Mon, 27 Aug 2012 06:29:30 +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 8AFA5A18B83 for ; Mon, 27 Aug 2012 06:29:04 +0000 (UTC) Received: by iafj25 with SMTP id j25so4920742iaf.11 for ; Sun, 26 Aug 2012 23:29:29 -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=+UA00TbwZp4iKt1fK75UFQbRiGcb02CswN5EtoCZv/Q=; b=QULUtU6ygxHe1frUEoIRnwM89cuRcgLeLRffgHLBENtCyRFqcdVgHBBgzIqb9Z5naH fnY3DSCSTemVFF06hMpGeatkhhvlASUpdERcdUh04c5bT7AcVlGwF5yhld1DiBImdqJf xBVXxiKq7khSDDr8quZbf9b/M7UqN/Fg4qqNu/Z4dSHFFmYEc20I/TYSwYXAl/slwqGw 4AIDYniB4imKlorRJM7WGfBZXN6/Bj1QyD/qYWilX8XArEJSrhYyu4lIidWh3Qvh9P/f bIKqTIKwJUSS0zhVU8KIEYIVJtmmZ+lIF80FH5UCoNDKTx+K7zDdAu3XwNyqrnKlUqGH vVyw== Received: by 10.50.207.106 with SMTP id lv10mr9206217igc.0.1346048969414; Sun, 26 Aug 2012 23:29:29 -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 ex8csp423517igc; Sun, 26 Aug 2012 23:29:29 -0700 (PDT) Received: by 10.68.135.39 with SMTP id pp7mr12336315pbb.127.1346048968751; Sun, 26 Aug 2012 23:29:28 -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 qs7si30567879pbc.132.2012.08.26.23.29.28 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 26 Aug 2012 23:29:28 -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 e7so2572193dad.37 for ; Sun, 26 Aug 2012 23:29:28 -0700 (PDT) Received: by 10.68.231.39 with SMTP id td7mr31937265pbc.3.1346048968351; Sun, 26 Aug 2012 23:29:28 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id wh7sm14044292pbc.33.2012.08.26.23.29.25 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 26 Aug 2012 23:29:27 -0700 (PDT) From: Sachin Kamat To: linux-mmc@vger.kernel.org Cc: cjb@laptop.org, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH] mmc: sdhci-pci: Use module_pci_driver Date: Mon, 27 Aug 2012 11:57:02 +0530 Message-Id: <1346048822-18048-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQnfhMCaEHIc0oEOVmDdq9N3L7YkGvuzWmdHvgwMXLbMKfS254M70efUWbjVTEz6XSb/ZmAU module_pci_driver makes the code simpler by eliminating module_init and module_exit calls. Signed-off-by: Sachin Kamat --- drivers/mmc/host/sdhci-pci.c | 19 +------------------ 1 files changed, 1 insertions(+), 18 deletions(-) diff --git a/drivers/mmc/host/sdhci-pci.c b/drivers/mmc/host/sdhci-pci.c index 504da71..3f0794e 100644 --- a/drivers/mmc/host/sdhci-pci.c +++ b/drivers/mmc/host/sdhci-pci.c @@ -1476,24 +1476,7 @@ static struct pci_driver sdhci_driver = { }, }; -/*****************************************************************************\ - * * - * Driver init/exit * - * * -\*****************************************************************************/ - -static int __init sdhci_drv_init(void) -{ - return pci_register_driver(&sdhci_driver); -} - -static void __exit sdhci_drv_exit(void) -{ - pci_unregister_driver(&sdhci_driver); -} - -module_init(sdhci_drv_init); -module_exit(sdhci_drv_exit); +module_pci_driver(sdhci_driver); MODULE_AUTHOR("Pierre Ossman "); MODULE_DESCRIPTION("Secure Digital Host Controller Interface PCI driver");