Commit 614b2740 authored by Thomas Zimmermann's avatar Thomas Zimmermann

drm: Remove unused branch in legacy PCI initialization

The legacy PCI init code sets the drvdata for drivers with MODESET
flag, but none of the old UMS drivers sets the flag. Remove the branch.
Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20210516191918.20974-1-tzimmermann@suse.de
parent 7988fdf5
...@@ -165,9 +165,6 @@ static int drm_legacy_get_pci_dev(struct pci_dev *pdev, ...@@ -165,9 +165,6 @@ static int drm_legacy_get_pci_dev(struct pci_dev *pdev,
dev->hose = pdev->sysdata; dev->hose = pdev->sysdata;
#endif #endif
if (drm_core_check_feature(dev, DRIVER_MODESET))
pci_set_drvdata(pdev, dev);
drm_legacy_pci_agp_init(dev); drm_legacy_pci_agp_init(dev);
ret = drm_dev_register(dev, ent->driver_data); ret = drm_dev_register(dev, ent->driver_data);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment