Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/dist/drm/nouveau Omit unused definitio...



details:   https://anonhg.NetBSD.org/src/rev/a31d1e560da7
branches:  trunk
changeset: 343467:a31d1e560da7
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Fri Feb 05 23:46:40 2016 +0000

description:
Omit unused definition of readw.

diffstat:

 sys/external/bsd/drm2/dist/drm/nouveau/nouveau_nv50_display.c |  16 +---------
 1 files changed, 2 insertions(+), 14 deletions(-)

diffs (39 lines):

diff -r 1345dad89b70 -r a31d1e560da7 sys/external/bsd/drm2/dist/drm/nouveau/nouveau_nv50_display.c
--- a/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_nv50_display.c     Fri Feb 05 23:45:44 2016 +0000
+++ b/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_nv50_display.c     Fri Feb 05 23:46:40 2016 +0000
@@ -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 @@
  */
 
 #  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)
 {



Home | Main Index | Thread Index | Old Index