[PATCH 3/3] drivers/block/skd_main.c: replace deprecated DEFINE_PCI_DEVICE_TABLE
From: Fabian Frederick
Date: Tue Jun 17 2014 - 15:14:29 EST
Fix checkpatch warning:
WARNING: Prefer struct pci_device_id over deprecated DEFINE_PCI_DEVICE_TABLE
Cc: Jens Axboe <axboe@xxxxxx>
Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@xxxxxxxxxxx>
Signed-off-by: Fabian Frederick <fabf@xxxxxxxxx>
---
drivers/block/skd_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/block/skd_main.c b/drivers/block/skd_main.c
index 1756d26d..3142eef 100644
--- a/drivers/block/skd_main.c
+++ b/drivers/block/skd_main.c
@@ -4772,7 +4772,7 @@ static const struct block_device_operations skd_blockdev_ops = {
*****************************************************************************
*/
-static DEFINE_PCI_DEVICE_TABLE(skd_pci_tbl) = {
+static const struct pci_device_id skd_pci_tbl[] = {
{ PCI_VENDOR_ID_STEC, PCI_DEVICE_ID_S1120,
PCI_ANY_ID, PCI_ANY_ID, 0, 0, },
{ 0 } /* terminate list */
--
1.8.4.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/