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: 1376391 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 66FE73FC71 for ; Mon, 27 Aug 2012 06:29:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752511Ab2H0G3a (ORCPT ); Mon, 27 Aug 2012 02:29:30 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:50596 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752234Ab2H0G32 (ORCPT ); Mon, 27 Aug 2012 02:29:28 -0400 Received: by pbbrr13 with SMTP id rr13so6872044pbb.19 for ; Sun, 26 Aug 2012 23:29:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; bh=+UA00TbwZp4iKt1fK75UFQbRiGcb02CswN5EtoCZv/Q=; b=MgacsKwXkIfIqOPxCTZ9ORJZfVinM69aArP07ey9rF7JNyHB1FnzO7/wqTfonBLpMg KPxWfnCxLxY3LXh5K8ZmplWYj+2jIxT6SyjUSObGQ/34UW0RnAyYG6tZZshrbj1VsFkY pIIVkHhI7uVI/iU3jeUEFMAsngkiqEWEQea7iEx+X5jTItE5CcInlbX4p04Qd4vqaNOi 1C+4xvTWT2gHguHlciHgMZvKnSM+/si5Ut2EsYH/zfzqXqL7BBd1oYXV9BwssrrGTFIc bUCn7SepGvTPl82TOmd+lpzr3lPKoixSDPt+78dBS+L7kB+19/8Bqx1TAquR4B6sacC0 1YWg== 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: ALoCoQkmEvB2Oaq4bHs3CHKVRGBtp4B3vWbuM9FuxINFUlEeRC9BVruhnCHFBjbIije1+WxT4myn Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org 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");