From patchwork Thu Nov 28 03:12:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 3251411 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 335CC9F474 for ; Thu, 28 Nov 2013 03:12:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6EDD12061C for ; Thu, 28 Nov 2013 03:12:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 71E5A2061B for ; Thu, 28 Nov 2013 03:12:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754118Ab3K1DMM (ORCPT ); Wed, 27 Nov 2013 22:12:12 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:59908 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754154Ab3K1DML (ORCPT ); Wed, 27 Nov 2013 22:12:11 -0500 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MWY00FCEE8A1J40@mailout2.samsung.com> for linux-pci@vger.kernel.org; Thu, 28 Nov 2013 12:12:10 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.51]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id C3.46.18301.984B6925; Thu, 28 Nov 2013 12:12:10 +0900 (KST) X-AuditID: cbfee68e-b7f7e6d00000477d-2a-5296b489c18b Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id BE.66.31284.984B6925; Thu, 28 Nov 2013 12:12:09 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MWY009SDE89EV60@mmp2.samsung.com>; Thu, 28 Nov 2013 12:12:09 +0900 (KST) From: Jingoo Han To: 'Bjorn Helgaas' Cc: linux-pci@vger.kernel.org, 'Jingoo Han' Subject: [PATCH] PCI: PCIe portdrv: use DEFINE_PCI_DEVICE_TABLE macro Date: Thu, 28 Nov 2013 12:12:09 +0900 Message-id: <002801ceebe7$a0293170$e07b9450$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac7r55//5zjYvnTxSFSwy3Rq8y2Jug== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrJIsWRmVeSWpSXmKPExsVy+t8zY92uLdOCDBacYrRY0pRhcXnhJVaL s/OOszkweyzYVOrRt2UVo8fnTXIBzFFcNimpOZllqUX6dglcGXs/9zMXtLNVzHpn1cDYxNrF yMkhIWAi8erpXjYIW0ziwr31QDYXh5DAMkaJxXPfM8MUzb2/ihUiMZ1R4vPtTywQzi9GiZYf D8Da2QTUJL58OcwOYosIaErMXrGFCcRmFnCUWLfyJdg6YQFXie3H1zOC2CwCqhKzfzWC1fAK 2Eq8eXidGcIWlPgx+R4LRK+WxPqdx6HmyEtsXvMWqIYD6CJ1iUd/dSFW6UnM/rANqkREYt+L d4wgt0kIzGOXmNP2iQlil4DEt8mHWCB6ZSU2HYB6TFLi4IobLBMYxWYh2TwLyeZZSDbPQrJi ASPLKkbR1ILkguKk9CIjveLE3OLSvHS95PzcTYyQaOrbwXjzgPUhxmSg9ROZpUST84HRmFcS b2hsZmRhamJqbGRuaUaasJI476KHSUFCAumJJanZqakFqUXxRaU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DfuUWIozEg21mIuKEwEGYHEqGQMA AA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 This macro is used to create a struct pci_device_id array. Signed-off-by: Jingoo Han --- drivers/pci/pcie/portdrv_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/pcie/portdrv_pci.c b/drivers/pci/pcie/portdrv_pci.c index 0d8fdc4..5356902 100644 --- a/drivers/pci/pcie/portdrv_pci.c +++ b/drivers/pci/pcie/portdrv_pci.c @@ -368,7 +368,7 @@ static void pcie_portdrv_err_resume(struct pci_dev *dev) /* * LINUX Device Driver Model */ -static const struct pci_device_id port_pci_ids[] = { { +static DEFINE_PCI_DEVICE_TABLE(port_pci_ids) = { { /* handle any PCI-Express port */ PCI_DEVICE_CLASS(((PCI_CLASS_BRIDGE_PCI << 8) | 0x00), ~0), }, { /* end: all zeroes */ }