From patchwork Fri Sep 25 15:08:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shraddha Barke X-Patchwork-Id: 7265811 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 29A9B9F30C for ; Fri, 25 Sep 2015 15:09:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4B59B20B5F for ; Fri, 25 Sep 2015 15:09:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B4ACE20B24 for ; Fri, 25 Sep 2015 15:09:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756621AbbIYPJI (ORCPT ); Fri, 25 Sep 2015 11:09:08 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:34286 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756478AbbIYPJI (ORCPT ); Fri, 25 Sep 2015 11:09:08 -0400 Received: by padhy16 with SMTP id hy16so108385994pad.1 for ; Fri, 25 Sep 2015 08:09:06 -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:in-reply-to:references; bh=B3PLGilwRnyI9qJhgwKA6EDH3Rb+dlCyFA5mdqttfjw=; b=hAWwpSu1kEOtTjrVDNZ44BcqSOQP+zGWkpCpBdWNVc+fS7RlPf6GItLzDpw8wonYW+ bEQCNJnDl1EdsVih2O/2VXsiHebRcmGHXsO1J0ulnMORAoU5/1VDn1L3flARKnwhRu9I QOYxNXdOTaqX/C+O8NikLz5/TYKtBwjFMTRMxky8D3/nuZDO+F/9iuJAbZDS6zJ0v/nJ k2bWaagcJ1tdXCfXJ40LfD7cHOYSbV2oCNoPv9hRPfYOy6AE/ZIqVET8O9AVZtMlRc2i Lxw2OGgCNeyontH61puuJybm5VXgUM5x1m7835OtMAZEOrmrrDZE/QduYnMEJXgg1kzB MNFA== X-Received: by 10.66.190.6 with SMTP id gm6mr7768709pac.27.1443193746773; Fri, 25 Sep 2015 08:09:06 -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 gx11sm4446208pbd.82.2015.09.25.08.09.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 25 Sep 2015 08:09:06 -0700 (PDT) From: Shraddha Barke To: "James E.J. Bottomley" , Hannes Reinecke , Oliver Neukum Cc: linux-scsi@vger.kernel.org, Shraddha Barke Subject: [PATCH 2/4] Scsi: dmx3191d.c: Use module_pci_driver Date: Fri, 25 Sep 2015 20:38:49 +0530 Message-Id: <1443193731-12587-2-git-send-email-shraddha.6596@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1443193731-12587-1-git-send-email-shraddha.6596@gmail.com> References: <1443193731-12587-1-git-send-email-shraddha.6596@gmail.com> 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.0A150209.56056391.0095, 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 respectively Signed-off-by: Shraddha Barke Reviewed-by: Hannes Reinecke --- drivers/scsi/dmx3191d.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/scsi/dmx3191d.c b/drivers/scsi/dmx3191d.c index 3e08812..2913fc7 100644 --- a/drivers/scsi/dmx3191d.c +++ b/drivers/scsi/dmx3191d.c @@ -143,19 +143,7 @@ static struct pci_driver dmx3191d_pci_driver = { .probe = dmx3191d_probe_one, .remove = dmx3191d_remove_one, }; - -static int __init dmx3191d_init(void) -{ - return pci_register_driver(&dmx3191d_pci_driver); -} - -static void __exit dmx3191d_exit(void) -{ - pci_unregister_driver(&dmx3191d_pci_driver); -} - -module_init(dmx3191d_init); -module_exit(dmx3191d_exit); +module_pci_driver(dmx3191d_pci_driver); MODULE_AUTHOR("Massimo Piccioni "); MODULE_DESCRIPTION("Domex DMX3191D SCSI driver");