From patchwork Fri Sep 25 15:08:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shraddha Barke X-Patchwork-Id: 7265841 Return-Path: X-Original-To: patchwork-linux-scsi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 28C60BF036 for ; Fri, 25 Sep 2015 15:09:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 48F6620B66 for ; Fri, 25 Sep 2015 15:09:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6588220B63 for ; Fri, 25 Sep 2015 15:09:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755260AbbIYPJP (ORCPT ); Fri, 25 Sep 2015 11:09:15 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:35003 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754894AbbIYPJO (ORCPT ); Fri, 25 Sep 2015 11:09:14 -0400 Received: by pacfv12 with SMTP id fv12so110200087pac.2 for ; Fri, 25 Sep 2015 08:09:03 -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=mzImmpYqkyfI57Z/VKNAsECKIs8zgkaY0Iom3/fU5kA=; b=BsC3gCP5tyb6yLPnErLPa7q72AuWls4n6fZG7TqmPm7i9itbrQALE0e9tLuDlCzyPF BzRWVK/wDf3apPhitrTBhS9w5FmDD0NOPIk6wPGMGutlh3jd8OoiO4I5wCrziml1KHLD 1s5TBwTvikX+XAu2XVqKg+21Z8NWva9mQ+nA6QogZd9XTdR3M+j0+1a0iyUrdB2Aw7Gr 3vsDGnl0s03tA5fqE5j1+MUIU1zFPeKC82JYtdlq2uDPmN2PRg894T6IlsvKb1KYYyBu PDPICxtv4sQqli15WKhhxP+12hVU2xYf+4Jyb/ui/A3MJJODMrl8KNjcGvRtIkZG+pxL U7KQ== X-Received: by 10.66.141.111 with SMTP id rn15mr7859842pab.118.1443193743458; Fri, 25 Sep 2015 08:09:03 -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.08.59 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 25 Sep 2015 08:09:02 -0700 (PDT) From: Shraddha Barke To: "James E.J. Bottomley" , Hannes Reinecke , Oliver Neukum Cc: linux-scsi@vger.kernel.org, Shraddha Barke Subject: [PATCH 1/4] Scsi: am53c974.c: Use module_pci_driver Date: Fri, 25 Sep 2015 20:38:48 +0530 Message-Id: <1443193731-12587-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.0A150209.5605638E.0045, 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/am53c974.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/scsi/am53c974.c b/drivers/scsi/am53c974.c index beea30e..0234b38 100644 --- a/drivers/scsi/am53c974.c +++ b/drivers/scsi/am53c974.c @@ -556,16 +556,6 @@ static struct pci_driver am53c974_driver = { .remove = pci_esp_remove_one, }; -static int __init am53c974_module_init(void) -{ - return pci_register_driver(&am53c974_driver); -} - -static void __exit am53c974_module_exit(void) -{ - pci_unregister_driver(&am53c974_driver); -} - MODULE_DESCRIPTION("AM53C974 SCSI driver"); MODULE_AUTHOR("Hannes Reinecke "); MODULE_LICENSE("GPL"); @@ -577,6 +567,4 @@ MODULE_PARM_DESC(am53c974_debug, "Enable debugging"); module_param(am53c974_fenab, bool, 0444); MODULE_PARM_DESC(am53c974_fenab, "Enable 24-bit DMA transfer sizes"); - -module_init(am53c974_module_init); -module_exit(am53c974_module_exit); +module_pci_driver(am53c974_driver);