OSDN Git Service

staging: vboxvideo: Use PCI_DEVICE() for our pci_id table
authorHans de Goede <hdegoede@redhat.com>
Mon, 22 Oct 2018 14:57:46 +0000 (16:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Nov 2018 11:59:50 +0000 (12:59 +0100)
Use PCI_DEVICE() for our pci_id table and also simplify the terminating
entry tio just "{ }".

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vboxvideo/vbox_drv.c

index 9997bea..f9f4c6c 100644 (file)
@@ -23,8 +23,8 @@ module_param_named(modeset, vbox_modeset, int, 0400);
 static struct drm_driver driver;
 
 static const struct pci_device_id pciidlist[] = {
-       { 0x80ee, 0xbeef, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
-       { 0, 0, 0},
+       { PCI_DEVICE(0x80ee, 0xbeef) },
+       { }
 };
 MODULE_DEVICE_TABLE(pci, pciidlist);