summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2013-05-05 12:30:42 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2013-05-05 12:30:42 +0000
commitfe2551a9af2d85c04dd5c0ede8c53291fbb5851f (patch)
tree86feb6cfa29821cd5d72491994197796af9c8b8b
parentbe621b52db356eeb6476cba4f4e9684f1be462db (diff)
Remove some #ifdef'ed out code that's never going to get used again.
-rw-r--r--sys/dev/pci/drm/i915/i915_drv.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/sys/dev/pci/drm/i915/i915_drv.c b/sys/dev/pci/drm/i915/i915_drv.c
index 7e15044d087..48bf6c637f0 100644
--- a/sys/dev/pci/drm/i915/i915_drv.c
+++ b/sys/dev/pci/drm/i915/i915_drv.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: i915_drv.c,v 1.24 2013/05/04 13:18:29 kettenis Exp $ */
+/* $OpenBSD: i915_drv.c,v 1.25 2013/05/05 12:30:41 kettenis Exp $ */
/*
* Copyright (c) 2008-2009 Owain G. Ainsworth <oga@openbsd.org>
*
@@ -1044,16 +1044,6 @@ inteldrm_detach(struct device *self, int flags)
dev_priv->drmdev = NULL;
}
-#if 0
- if (!I915_NEED_GFX_HWS(dev) && dev_priv->hws_dmamem) {
- drm_dmamem_free(dev_priv->dmat, dev_priv->hws_dmamem);
- dev_priv->hws_dmamem = NULL;
- /* Need to rewrite hardware status page */
- I915_WRITE(HWS_PGA, 0x1ffff000);
-// dev_priv->hw_status_page = NULL;
- }
-#endif
-
if (IS_I9XX(dev) && dev_priv->ifp.i9xx.bsh != 0) {
bus_space_unmap(dev_priv->ifp.i9xx.bst, dev_priv->ifp.i9xx.bsh,
PAGE_SIZE);