diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-11-22 05:05:11 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-11-22 05:05:11 +0000 |
commit | 906ea38b61cd9d0d6f0ea3d3885a41a80f9167f4 (patch) | |
tree | 6793d1debf94877df558c6451e736a2e73bee77e /sys/dev | |
parent | b0be1f36e4b1cd5d1197426971fb6ce73ada554c (diff) |
Remove dev->id_entry, it is no longer needed.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/drm/drmP.h | 1 | ||||
-rw-r--r-- | sys/dev/pci/drm/drm_drv.c | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/pci/drm/drmP.h b/sys/dev/pci/drm/drmP.h index d2ffdb634a4..e36c4aae466 100644 --- a/sys/dev/pci/drm/drmP.h +++ b/sys/dev/pci/drm/drmP.h @@ -508,7 +508,6 @@ struct drm_device { struct device device; /* softc is an extension of struct device */ const struct drm_driver_info *driver; - drm_pci_id_list_t *id_entry; /* PCI ID, name, and chipset private */ u_int16_t pci_device; /* PCI device id */ u_int16_t pci_vendor; /* PCI vendor id */ diff --git a/sys/dev/pci/drm/drm_drv.c b/sys/dev/pci/drm/drm_drv.c index 418d6b3800c..f45f0962632 100644 --- a/sys/dev/pci/drm/drm_drv.c +++ b/sys/dev/pci/drm/drm_drv.c @@ -120,7 +120,6 @@ drm_attach(struct device *parent, struct device *kdev, id_entry = drm_find_description(PCI_VENDOR(pa->pa_id), PCI_PRODUCT(pa->pa_id), idlist); - dev->id_entry = id_entry; TAILQ_INIT(&dev->maplist); @@ -141,7 +140,7 @@ drm_attach(struct device *parent, struct device *kdev, if (dev->driver->load != NULL) { int retcode; - retcode = dev->driver->load(dev, dev->id_entry->driver_private); + retcode = dev->driver->load(dev, id_entry->driver_private); if (retcode != 0) goto error; } |