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: 1376411 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 C3D7B3FC71 for ; Mon, 27 Aug 2012 06:31:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752234Ab2H0Gbj (ORCPT ); Mon, 27 Aug 2012 02:31:39 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:55281 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751122Ab2H0Gbi (ORCPT ); Mon, 27 Aug 2012 02:31:38 -0400 Received: by pbbrr13 with SMTP id rr13so6874892pbb.19 for ; Sun, 26 Aug 2012 23:31:38 -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=21Wf6JKVD39DLxcImDSyUvgq/roDlR4FivLTtcnfyq0=; b=TipTBhNC4VIcjz7szO2wcC+3xCSWX72IfvOl4MnA46xX+BSZE3bpbb1T30Nv3XRs+q jozCw7cc9KuWU0RVcfQ9eAgH0//Saf5A/0+RXRQ2tlUK7TNr75ydB0H0Ep8dPvP/h8rP zPnV16JJPS0TKcqneFbia3RCYDF1x8iwV+jR9PNkYwN5NJvMq2ygOZEYhvB6lMHp4No1 ofbXbbIloruedqMjp0ccl4ymY6HuyUiTmJkxpeBl0UFeee6HBEdiOp0AjnLSbjsTwcQj y+cycmQLByAOCRt/TLwczmLEISk1pGKQ0wqroONVHoK275kNb+Q2UUhOmTst+Tr5MqU9 qcDQ== 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: ALoCoQn28pI7X45laMiEJ0D9pLDTB0WvocuWHMRSAXQZJ7Mjk+JDHFCWaFXBK9pZa4j2Jxjsz+v6 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/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 ");