diff options
author | Aaro Koskinen <aaro.koskinen@iki.fi> | 2010-11-19 21:58:43 +0000 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-11-24 16:02:32 +0900 |
commit | 8807236b1895b3aca022180cb9906022965344ad (patch) | |
tree | 826f9fd4eb677d05ff3a64f9b790f6fefca04350 /drivers/video | |
parent | 89c8fb7a0156f19237880c4ea576eb5add8c0d60 (diff) | |
download | linux-3.10-8807236b1895b3aca022180cb9906022965344ad.tar.gz linux-3.10-8807236b1895b3aca022180cb9906022965344ad.tar.bz2 linux-3.10-8807236b1895b3aca022180cb9906022965344ad.zip |
sisfb: delete obsolete PCI ROM bug workaround
Delete a workaround for a PCI ROM bug that has been fixed ages ago by
the commit 761a3ac08c63718dacde12aaf0ec6d6760e8c2b7.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: Thomas Winischhofer <thomas@winischhofer.net>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/sis/sis_main.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/video/sis/sis_main.c b/drivers/video/sis/sis_main.c index 3dde12b0ab0..1073b70dd85 100644 --- a/drivers/video/sis/sis_main.c +++ b/drivers/video/sis/sis_main.c @@ -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); } |