summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/pci/tga.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/pci/tga.c b/sys/dev/pci/tga.c
index 5b1b68ea55d..f01d5d94687 100644
--- a/sys/dev/pci/tga.c
+++ b/sys/dev/pci/tga.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tga.c,v 1.20 2003/04/29 21:58:35 miod Exp $ */
+/* $OpenBSD: tga.c,v 1.21 2003/08/31 17:09:12 matthieu Exp $ */
/* $NetBSD: tga.c,v 1.40 2002/03/13 15:05:18 ad Exp $ */
/*
@@ -202,7 +202,7 @@ tga_getdevconfig(memt, pc, tag, dc)
struct rasops_info *rip;
int cookie;
bus_size_t pcisize;
- int i, cacheable;
+ int i;
dc->dc_memt = memt;
@@ -212,10 +212,8 @@ tga_getdevconfig(memt, pc, tag, dc)
/* XXX magic number */
if (pci_mapreg_info(pc, tag, 0x10,
PCI_MAPREG_TYPE_MEM | PCI_MAPREG_MEM_TYPE_32BIT,
- &dc->dc_pcipaddr, &pcisize, &cacheable))
+ &dc->dc_pcipaddr, &pcisize, NULL))
return;
- if (!cacheable)
- panic("tga memory not cacheable");
DPRINTF("tga_getdevconfig: preparing to map\n");
#ifdef __OpenBSD__