Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758069AbbGHFye (ORCPT ); Wed, 8 Jul 2015 01:54:34 -0400 Received: from mail-ie0-f173.google.com ([209.85.223.173]:33939 "EHLO mail-ie0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752327AbbGHFy1 (ORCPT ); Wed, 8 Jul 2015 01:54:27 -0400 From: Rajat Jain To: David Woodhouse , Brian Norris , linux-mtd@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Rajat Jain , Rajat Jain Subject: [PATCH] mtd: denali: Use module_pci_driver() Date: Tue, 7 Jul 2015 22:54:03 -0700 Message-Id: <1436334843-27480-1-git-send-email-rajatja@google.com> X-Mailer: git-send-email 2.4.3.573.g4eafbef Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1142 Lines: 37 Use module_pci_driver, since init and exit functions only register and unregister the pci driver, respectively. Signed-off-by: Rajat Jain Signed-off-by: Rajat Jain --- drivers/mtd/nand/denali_pci.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/mtd/nand/denali_pci.c b/drivers/mtd/nand/denali_pci.c index 6e2f387..29e5d0c 100644 --- a/drivers/mtd/nand/denali_pci.c +++ b/drivers/mtd/nand/denali_pci.c @@ -129,14 +129,4 @@ static struct pci_driver denali_pci_driver = { .remove = denali_pci_remove, }; -static int denali_init_pci(void) -{ - return pci_register_driver(&denali_pci_driver); -} -module_init(denali_init_pci); - -static void denali_exit_pci(void) -{ - pci_unregister_driver(&denali_pci_driver); -} -module_exit(denali_exit_pci); +module_pci_driver(denali_pci_driver); -- 2.4.3.573.g4eafbef -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/