Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm/gumstix Fix a bug.



details:   https://anonhg.NetBSD.org/src/rev/2cddc7e7ae4e
branches:  trunk
changeset: 749196:2cddc7e7ae4e
user:      kiyohara <kiyohara%NetBSD.org@localhost>
date:      Sat Nov 21 08:33:50 2009 +0000

description:
Fix a bug.
  sc = device_private(self);
  sc->dev = self;

diffstat:

 sys/arch/evbarm/gumstix/gxlcd.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 33ac52668c35 -r 2cddc7e7ae4e sys/arch/evbarm/gumstix/gxlcd.c
--- a/sys/arch/evbarm/gumstix/gxlcd.c   Sat Nov 21 07:53:59 2009 +0000
+++ b/sys/arch/evbarm/gumstix/gxlcd.c   Sat Nov 21 08:33:50 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gxlcd.c,v 1.1 2009/08/09 07:10:13 kiyohara Exp $       */
+/*     $NetBSD: gxlcd.c,v 1.2 2009/11/21 08:33:50 kiyohara Exp $       */
 
 /*
  * Copyright (c) 2002, 2003  Genetec Corporation.  All rights reserved.
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gxlcd.c,v 1.1 2009/08/09 07:10:13 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gxlcd.c,v 1.2 2009/11/21 08:33:50 kiyohara Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -153,9 +153,10 @@
 static void
 gxlcd_attach(device_t parent, device_t self, void *aux)
 {
-       struct pxa2x0_lcd_softc *sc = (struct pxa2x0_lcd_softc *)self;
+       struct pxa2x0_lcd_softc *sc = device_private(self);
        struct wsemuldisplaydev_attach_args aa;
 
+       sc->dev = self;
        pxa2x0_lcd_attach_sub(sc, aux, &CURRENT_DISPLAY);
 
        aa.console = gxlcd_console;



Home | Main Index | Thread Index | Old Index