From patchwork Wed Oct 21 22:23:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Muhammad Falak R Wani X-Patchwork-Id: 7461241 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 D6B75BEEA4 for ; Wed, 21 Oct 2015 22:19:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0D068208E1 for ; Wed, 21 Oct 2015 22:19:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2A42E208D9 for ; Wed, 21 Oct 2015 22:19:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756497AbbJUWS7 (ORCPT ); Wed, 21 Oct 2015 18:18:59 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:34971 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756476AbbJUWS6 (ORCPT ); Wed, 21 Oct 2015 18:18:58 -0400 Received: by pasz6 with SMTP id z6so66423808pas.2; Wed, 21 Oct 2015 15:18:58 -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=xKEDZxpJg1a5lm6Tg+ahCuks6GTrC1TQmxmWhqN8pbA=; b=eJnBY8Zjag6ePryDpvIfiZwR5pO0oiGduvZlEMSAmF5nAWz/lIuef1/Uhgu+1p4ch3 JKWHQH/HNHwKIgZJwq/3BXzY6uEqFZ7kQSRGHb1c5i084p0df8cP1CUBcrCiD4s53/Zy ELaayDbY7fiFAFTOxLNbpYALKprquOB37Ab++W9H/bElWTLsPak6m5CAsXwdBQOScoMD IorW5lxtL73MXFvGqmiAAlJGWEB4J2XKbRmukqWJRF7p8Be7alhGXPH5B+csKcFPE5B1 jFsPEFojEVKwziFH+MJOcVkIGqrlvdPR3C9+Iq0QrEqudVTITqAMbzIIWYbGC3K5EaQV EEdA== X-Received: by 10.68.98.34 with SMTP id ef2mr13107546pbb.45.1445465938042; Wed, 21 Oct 2015 15:18:58 -0700 (PDT) Received: from localhost.localdomain ([1.39.34.53]) by smtp.gmail.com with ESMTPSA id vl1sm10911537pbc.31.2015.10.21.15.18.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 21 Oct 2015 15:18:57 -0700 (PDT) From: Muhammad Falak R Wani To: "James E.J. Bottomley" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Ondrej Zary , Muhammad Falak R Wani Subject: [PATCH] scsi: wd719x: Remove use of macro DEFINE_PCI_DEVICE_TABLE Date: Thu, 22 Oct 2015 03:53:27 +0530 Message-Id: <1445466207-23265-1-git-send-email-falakreyaz@gmail.com> X-Mailer: git-send-email 1.9.1 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 struct pci_device_id instead of DEFINE_PCI_DEVICE_TABLE with the goal of getting rid of this macro completely, as this macro is deprecated. Signed-off-by: Muhammad Falak R Wani Reviewed-by: Johannes Thumshirn --- drivers/scsi/wd719x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/wd719x.c b/drivers/scsi/wd719x.c index e3da1a2..2a9da2e 100644 --- a/drivers/scsi/wd719x.c +++ b/drivers/scsi/wd719x.c @@ -962,7 +962,7 @@ static void wd719x_pci_remove(struct pci_dev *pdev) scsi_host_put(sh); } -static DEFINE_PCI_DEVICE_TABLE(wd719x_pci_table) = { +static const struct pci_device_id wd719x_pci_table[] = { { PCI_DEVICE(PCI_VENDOR_ID_WD, 0x3296) }, {} };