Skip to content

Commit

Permalink
sisfb: delete obsolete PCI ROM bug workaround
Browse files Browse the repository at this point in the history
Delete a workaround for a PCI ROM bug that has been fixed ages ago by
the commit 761a3ac.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: Thomas Winischhofer <thomas@winischhofer.net>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Aaro Koskinen authored and Paul Mundt committed Nov 24, 2010
1 parent 89c8fb7 commit 8807236
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions drivers/video/sis/sis_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4114,14 +4114,6 @@ sisfb_find_rom(struct pci_dev *pdev)
if(sisfb_check_rom(rom_base, ivideo)) {

if((myrombase = vmalloc(65536))) {

/* Work around bug in pci/rom.c: Folks forgot to check
* whether the size retrieved from the BIOS image eventually
* is larger than the mapped size
*/
if(pci_resource_len(pdev, PCI_ROM_RESOURCE) < romsize)
romsize = pci_resource_len(pdev, PCI_ROM_RESOURCE);

memcpy_fromio(myrombase, rom_base,
(romsize > 65536) ? 65536 : romsize);
}
Expand Down

0 comments on commit 8807236

Please sign in to comment.