lkml.org 
[lkml]   [2013]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 2/4] uio: uio_cif: use DEFINE_PCI_DEVICE_TABLE macro
Date
This macro is used to create a struct pci_device_id array.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/uio/uio_cif.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/uio/uio_cif.c b/drivers/uio/uio_cif.c
index 30f533c..07dba37 100644
--- a/drivers/uio/uio_cif.c
+++ b/drivers/uio/uio_cif.c
@@ -111,7 +111,7 @@ static void hilscher_pci_remove(struct pci_dev *dev)
kfree (info);
}

-static struct pci_device_id hilscher_pci_ids[] = {
+static DEFINE_PCI_DEVICE_TABLE(hilscher_pci_ids) = {
{
.vendor = PCI_VENDOR_ID_PLX,
.device = PCI_DEVICE_ID_PLX_9030,
--
1.7.10.4



\
 
 \ /
  Last update: 2013-11-28 03:21    [W:0.369 / U:0.820 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site