summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/drm/drmP.h1
-rw-r--r--sys/dev/pci/drm/drm_drv.c3
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;
}