mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
Revert "video/aperture: Only remove sysfb on the default vga pci device"
This reverts commit485ec8f8e1which is commit5ae3716cfdupstream. It breaks the Android ABI and can be brought back later in an abi-safe way if needed. Bug: 161946584 Change-Id: Iec66232fff97b07fd0c57975e8b1785710cfb395 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
@@ -332,16 +332,15 @@ int aperture_remove_conflicting_pci_devices(struct pci_dev *pdev, const char *na
|
||||
primary = pdev->resource[PCI_ROM_RESOURCE].flags & IORESOURCE_ROM_SHADOW;
|
||||
#endif
|
||||
|
||||
if (primary)
|
||||
sysfb_disable();
|
||||
|
||||
for (bar = 0; bar < PCI_STD_NUM_BARS; ++bar) {
|
||||
if (!(pci_resource_flags(pdev, bar) & IORESOURCE_MEM))
|
||||
continue;
|
||||
|
||||
base = pci_resource_start(pdev, bar);
|
||||
size = pci_resource_len(pdev, bar);
|
||||
aperture_detach_devices(base, size);
|
||||
ret = aperture_remove_conflicting_devices(base, size, primary, name);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user