aboutsummaryrefslogtreecommitdiff
path: root/net/unix/unix_bpf.c
diff options
context:
space:
mode:
authorPetr Cvek <petrcvekcz@gmail.com>2022-06-17 15:38:04 +0200
committerHelge Deller <deller@gmx.de>2022-06-20 14:33:05 +0200
commit25c9a15fb7bbfafb94dd3b4e3165c18b8e1bd039 (patch)
tree722127b221633905f023dca77fd59ff47addb27f /net/unix/unix_bpf.c
parentfc378794a2f7a19cf26010dc33b89ba608d4c70f (diff)
video: fbdev: intelfb: Use aperture size from pci_resource_len
Aperture size for i9x5 variants is determined from PCI base address. if (pci_resource_start(pdev, 2) & 0x08000000) *aperture_size = MB(128); ... This condition is incorrect as 128 MiB address can have the address set as 0x?8000000 or 0x?0000000. Also the code can be simplified to just use pci_resource_len(). The true settings of the aperture size is in the MSAC register, which could be used instead. However the value is used only as an info message, so it doesn't matter. Signed-off-by: Petr Cvek <petrcvekcz@gmail.com> Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions