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: 1376441 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 10AC8DF215 for ; Mon, 27 Aug 2012 06:44:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752030Ab2H0Gog (ORCPT ); Mon, 27 Aug 2012 02:44:36 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:37264 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752386Ab2H0Gof (ORCPT ); Mon, 27 Aug 2012 02:44:35 -0400 Received: by pbbrr13 with SMTP id rr13so6891499pbb.19 for ; Sun, 26 Aug 2012 23:44:35 -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=7cybm2CQpELcivEtTTPjI5z4anfG6bhl6oAVWrNKwZ4=; b=hTqwG07dxv1TDa0dRJS1SrK4yV6yH5rJnA48TLGsjQor+KmrXA5xIy9jK3+lIPTTHM zFJ0CH/NVdxAkVj89QOCtRxZDsqR+uDL9rBTJvEGzg6XHX8JZRth2oCvmfUN/6k/Geym RMG56C3yypcsDdRlNQ9fUd30aQdUFlReBFp9THGLClTGMG+4lX9nwykPffyR/u00JhRU UrR/6KnvSZ+NIXaT2aSL7Yu4bBVaalUVGWr7Lyae1WaaZmUM/Pfi/wC/j5pcp03MnCGc H/wrBpWYpA+2XciHR1kkDCV0YtnhulLiF7JXv6j3cdoaULDTK3688xCVzV2TgzNlo6pX 9EeQ== 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: ALoCoQnnaxJgg3BX2y2nCfVBlRDfW0axzJBw51KZQ97ecZer99gLRVDi6StiIqbq9QDjphEXA7DH 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 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.");