From patchwork Thu Nov 28 03:16:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 3251441 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 10E21C045B for ; Thu, 28 Nov 2013 03:16:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4E1E52015B for ; Thu, 28 Nov 2013 03:16:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 658AD20120 for ; Thu, 28 Nov 2013 03:16:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758702Ab3K1DQd (ORCPT ); Wed, 27 Nov 2013 22:16:33 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:60543 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758697Ab3K1DQc (ORCPT ); Wed, 27 Nov 2013 22:16:32 -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 <0MWY00FNCEFI1J40@mailout2.samsung.com> for linux-fbdev@vger.kernel.org; Thu, 28 Nov 2013 12:16:30 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.48]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 36.17.18301.E85B6925; Thu, 28 Nov 2013 12:16:30 +0900 (KST) X-AuditID: cbfee68e-b7f7e6d00000477d-ed-5296b58e0f47 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 6E.07.31284.E85B6925; Thu, 28 Nov 2013 12:16:30 +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 <0MWY00AY5EFI6840@mmp2.samsung.com>; Thu, 28 Nov 2013 12:16:30 +0900 (KST) From: Jingoo Han To: 'Tomi Valkeinen' Cc: 'Jean-Christophe PLAGNIOL-VILLARD' , linux-fbdev@vger.kernel.org, 'Jingoo Han' , 'Paul Mackerras' , 'Benjamin Herrenschmidt' References: <002901ceebe7$c3eec160$4bcc4420$%han@samsung.com> In-reply-to: <002901ceebe7$c3eec160$4bcc4420$%han@samsung.com> Subject: [PATCH 03/28] video: aty: use DEFINE_PCI_DEVICE_TABLE macro Date: Thu, 28 Nov 2013 12:16:30 +0900 Message-id: <002b01ceebe8$3ba2fb40$b2e8f1c0$%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: Ac7r58PUzO8IUFQ9Qx2mWpwvisZl0wAABxdg Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrMIsWRmVeSWpSXmKPExsVy+t8zA92+rdOCDJ58MLb40NTKbHF54SVW ixN9H1gt1hxZzG6x7uELJov182+xObB5vLpwh8Wj500Lq8fcXX2MHn1bVjF6HL+xncnj8ya5 ALYoLpuU1JzMstQifbsEroxFzzvZCq4JVPyc+5uxgXE+XxcjJ4eEgInE1a2XWSFsMYkL99az dTFycQgJLGOU2LHrEDtM0c0905ggEtMZJV5NncoM4fxilDjT9Z8FpIpNQE3iy5fDYB0iAjoS kxb1gBUxC9xnlPi66jxYQkjAVuLhvW5GEJtTwE7i+MK/zCC2sICLxKNNX8BsFgFVia0zPoMN 5QWq37LqMZQtKPFj8j0wm1lAS2L9zuNMELa8xOY1b4F6OYBOVZd49FcX4gYjiXfbupghSkQ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9CMVCINyWxsiq1KD++ qDQntfgQYzLQoxOZpUST84GpK68k3tDYxMzI0sjMwsjE3Jw0YSVx3oOt1oFCAumJJanZqakF qUUwW5g4OKUaGDdkZKZ/Z9HfveTAAc5LiznfCfCo5jj08yvu3Ci3x0HmeeV8brVJ/k1sEodO Tg1ZK/d16S8rM67vCxvn2bL/+f+rRK35dlXzzN/PK2336FmWH55+/GemcrFp6sL767UK7q2M ELjHPsc3sy7/wtXnadvbt0X0fM8/cFgifaP8BRWf14FiDak7tiqxFGckGmoxFxUnAgDXjGZU UwMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@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/video/aty/aty128fb.c | 2 +- drivers/video/aty/atyfb_base.c | 2 +- drivers/video/aty/radeon_base.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/video/aty/aty128fb.c b/drivers/video/aty/aty128fb.c index 12ca031..699b587 100644 --- a/drivers/video/aty/aty128fb.c +++ b/drivers/video/aty/aty128fb.c @@ -171,7 +171,7 @@ static int aty128_pci_resume(struct pci_dev *pdev); static int aty128_do_resume(struct pci_dev *pdev); /* supported Rage128 chipsets */ -static struct pci_device_id aty128_pci_tbl[] = { +static DEFINE_PCI_DEVICE_TABLE(aty128_pci_tbl) = { { PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_RAGE128_LE, PCI_ANY_ID, PCI_ANY_ID, 0, 0, rage_M3_pci }, { PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_RAGE128_LF, diff --git a/drivers/video/aty/atyfb_base.c b/drivers/video/aty/atyfb_base.c index 28fafbf..bfc2893 100644 --- a/drivers/video/aty/atyfb_base.c +++ b/drivers/video/aty/atyfb_base.c @@ -3772,7 +3772,7 @@ static void atyfb_pci_remove(struct pci_dev *pdev) atyfb_remove(info); } -static struct pci_device_id atyfb_pci_tbl[] = { +static DEFINE_PCI_DEVICE_TABLE(atyfb_pci_tbl) = { #ifdef CONFIG_FB_ATY_GX { PCI_DEVICE(PCI_VENDOR_ID_ATI, PCI_CHIP_MACH64GX) }, { PCI_DEVICE(PCI_VENDOR_ID_ATI, PCI_CHIP_MACH64CX) }, diff --git a/drivers/video/aty/radeon_base.c b/drivers/video/aty/radeon_base.c index 26d80a4..e2ad734 100644 --- a/drivers/video/aty/radeon_base.c +++ b/drivers/video/aty/radeon_base.c @@ -101,7 +101,7 @@ #define CHIP_DEF(id, family, flags) \ { PCI_VENDOR_ID_ATI, id, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (flags) | (CHIP_FAMILY_##family) } -static struct pci_device_id radeonfb_pci_table[] = { +static DEFINE_PCI_DEVICE_TABLE(radeonfb_pci_table) = { /* Radeon Xpress 200m */ CHIP_DEF(PCI_CHIP_RS480_5955, RS480, CHIP_HAS_CRTC2 | CHIP_IS_IGP | CHIP_IS_MOBILITY), CHIP_DEF(PCI_CHIP_RS482_5975, RS480, CHIP_HAS_CRTC2 | CHIP_IS_IGP | CHIP_IS_MOBILITY),