aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tiny/bochs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/tiny/bochs.c')
-rw-r--r--drivers/gpu/drm/tiny/bochs.c31
1 files changed, 3 insertions, 28 deletions
diff --git a/drivers/gpu/drm/tiny/bochs.c b/drivers/gpu/drm/tiny/bochs.c
index 024346054c70..1e19724f3cb0 100644
--- a/drivers/gpu/drm/tiny/bochs.c
+++ b/drivers/gpu/drm/tiny/bochs.c
@@ -64,12 +64,6 @@ MODULE_PARM_DESC(defy, "default y resolution");
/* ---------------------------------------------------------------------- */
-enum bochs_types {
- BOCHS_QEMU_STDVGA,
- BOCHS_SIMICS,
- BOCHS_UNKNOWN,
-};
-
struct bochs_device {
/* hw */
void __iomem *mmio;
@@ -692,28 +686,9 @@ static void bochs_pci_remove(struct pci_dev *pdev)
}
static const struct pci_device_id bochs_pci_tbl[] = {
- {
- .vendor = 0x1234,
- .device = 0x1111,
- .subvendor = PCI_SUBVENDOR_ID_REDHAT_QUMRANET,
- .subdevice = PCI_SUBDEVICE_ID_QEMU,
- .driver_data = BOCHS_QEMU_STDVGA,
- },
- {
- .vendor = 0x1234,
- .device = 0x1111,
- .subvendor = PCI_ANY_ID,
- .subdevice = PCI_ANY_ID,
- .driver_data = BOCHS_UNKNOWN,
- },
- {
- .vendor = 0x4321,
- .device = 0x1111,
- .subvendor = PCI_ANY_ID,
- .subdevice = PCI_ANY_ID,
- .driver_data = BOCHS_SIMICS,
- },
- { /* end of list */ }
+ { PCI_DEVICE(0x1234, 0x1111) }, /* Bochs, QEMU */
+ { PCI_DEVICE(0x4321, 0x1111) }, /* Simics */
+ { }
};
static struct pci_driver bochs_pci_driver = {