From patchwork Mon Sep 21 15:17:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shraddha Barke X-Patchwork-Id: 7232181 Return-Path: X-Original-To: patchwork-linux-scsi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B42EF9F380 for ; Mon, 21 Sep 2015 15:18:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4982520779 for ; Mon, 21 Sep 2015 15:18:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6ED2B20770 for ; Mon, 21 Sep 2015 15:18:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756651AbbIUPSH (ORCPT ); Mon, 21 Sep 2015 11:18:07 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:33850 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756572AbbIUPSF (ORCPT ); Mon, 21 Sep 2015 11:18:05 -0400 Received: by padhy16 with SMTP id hy16so119162492pad.1; Mon, 21 Sep 2015 08:18:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=L9AoXF5AfAB+LggJAIfJOH1+65Q3rkhaC9zogu22+t8=; b=NpSSTlsCdDHqGuav+SABi50BXRnZYk7+PTVC3pyI4eszbxC73s/Gs7ZgMP8AVX8nLF TKMs/vz4KmvWisyxpkkAB1jf4Xm4EaBvK8MviOzpyLW78ZnQ9ILyeNpHSJD38Ehr0+EX L/4rU1KZWHS01CgbzZH2plfWG3MtW9jS3KYwyFDJqcWYS4jkfmEzcfHbNbx97fUqJO7A KT2z5IQR67BhACeU2T9bPsUTm95BZjFdBqlnVJyS5fDUQTJNboonuJL4ROMhCYTtk9Ga ScJwOo5QznzHc2SEUXlh4fz4TykM5vT+eWhAQxo0GFGjLb/3SAsYfoH2yTXtpA0SdFkV pR9Q== X-Received: by 10.68.225.228 with SMTP id rn4mr25414309pbc.25.1442848684560; Mon, 21 Sep 2015 08:18:04 -0700 (PDT) Received: from shraddha-370R4E-370R4V-370R5E-3570RE-370R5V.bits-goa.ac.in ([103.225.100.51]) by smtp.gmail.com with ESMTPSA id ip1sm25115206pbc.30.2015.09.21.08.18.01 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Sep 2015 08:18:04 -0700 (PDT) From: Shraddha Barke To: "James E.J. Bottomley" Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Shraddha Barke Subject: [PATCH] Scsi: Use module_pci_driver Date: Mon, 21 Sep 2015 20:47:40 +0530 Message-Id: <1442848660-10288-1-git-send-email-shraddha.6596@gmail.com> X-Mailer: git-send-email 2.1.4 X-Cyberoam-smtpxy-version: 1.0.6.3 X-Cyberoam-AV-Policy: default X-CTCH-PVer: 0000001 X-CTCH-Spam: Unknown X-CTCH-VOD: Unknown X-CTCH-Flags: 0 X-CTCH-RefID: str=0001.0A150201.56001FAB.009F, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-Score: 0.000 X-CTCH-ScoreCust: 0.000 X-CTCH-Rules: Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use module_pci_driver for drivers whose init and exit functions only register and unregister Signed-off-by: Shraddha Barke --- drivers/scsi/initio.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/scsi/initio.c b/drivers/scsi/initio.c index 6a926ba..ea12a66 100644 --- a/drivers/scsi/initio.c +++ b/drivers/scsi/initio.c @@ -2994,19 +2994,7 @@ static struct pci_driver initio_pci_driver = { .remove = initio_remove_one, }; -static int __init initio_init_driver(void) -{ - return pci_register_driver(&initio_pci_driver); -} - -static void __exit initio_exit_driver(void) -{ - pci_unregister_driver(&initio_pci_driver); -} - MODULE_DESCRIPTION("Initio INI-9X00U/UW SCSI device driver"); MODULE_AUTHOR("Initio Corporation"); MODULE_LICENSE("GPL"); - -module_init(initio_init_driver); -module_exit(initio_exit_driver); +module_pci_driver(initio_pci_driver);