drm: Remove pci_vendor and pci_device from struct drm_device
We can get the PCI vendor and device IDs via dev->pdev. So we can drop the duplicated information. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:

کامیت شده توسط
Dave Airlie

والد
fc6ff1935b
کامیت
ffbab09bf9
@@ -490,8 +490,8 @@ static void nv04_dfp_update_backlight(struct drm_encoder *encoder, int mode)
|
||||
/* BIOS scripts usually take care of the backlight, thanks
|
||||
* Apple for your consistency.
|
||||
*/
|
||||
if (dev->pci_device == 0x0174 || dev->pci_device == 0x0179 ||
|
||||
dev->pci_device == 0x0189 || dev->pci_device == 0x0329) {
|
||||
if (dev->pdev->device == 0x0174 || dev->pdev->device == 0x0179 ||
|
||||
dev->pdev->device == 0x0189 || dev->pdev->device == 0x0329) {
|
||||
if (mode == DRM_MODE_DPMS_ON) {
|
||||
nv_mask(device, NV_PBUS_DEBUG_DUALHEAD_CTL, 0, 1 << 31);
|
||||
nv_mask(device, NV_PCRTC_GPIO_EXT, 3, 1);
|
||||
|
مرجع در شماره جدید
Block a user