Module Name:    src
Committed By:   riastradh
Date:           Fri Feb  5 23:46:40 UTC 2016

Modified Files:
        src/sys/external/bsd/drm2/dist/drm/nouveau: nouveau_nv50_display.c

Log Message:
Omit unused definition of readw.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 \
    src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_nv50_display.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_nv50_display.c
diff -u src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_nv50_display.c:1.4 src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_nv50_display.c:1.5
--- src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_nv50_display.c:1.4	Wed Oct 14 00:12:55 2015
+++ src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_nv50_display.c	Fri Feb  5 23:46:40 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: nouveau_nv50_display.c,v 1.4 2015/10/14 00:12:55 mrg Exp $	*/
+/*	$NetBSD: nouveau_nv50_display.c,v 1.5 2016/02/05 23:46:40 riastradh Exp $	*/
 
 	/*
  * Copyright 2011 Red Hat Inc.
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nouveau_nv50_display.c,v 1.4 2015/10/14 00:12:55 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_nv50_display.c,v 1.5 2016/02/05 23:46:40 riastradh Exp $");
 
 #include <linux/dma-mapping.h>
 #include <linux/err.h>
@@ -59,20 +59,8 @@ __KERNEL_RCSID(0, "$NetBSD: nouveau_nv50
  */
 
 #  define	__iomem		volatile
-#  define	readw		fake_readw
 #  define	writew		fake_writew
 
-static inline uint32_t
-fake_readw(const void __iomem *ptr)
-{
-	uint16_t v;
-
-	v = *(const uint16_t __iomem *)ptr;
-	membar_consumer();
-
-	return v;
-}
-
 static inline void
 fake_writew(uint16_t v, void __iomem *ptr)
 {

Reply via email to