Use a local temporary struct gt_softc* so we don't try to
de-reference void*. Restores buildability of this file.
This commit is contained in:
parent
75360c7716
commit
bd8aa5583f
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: gt.c,v 1.17 2008/06/12 22:29:03 cegger Exp $ */
|
||||
/* $NetBSD: gt.c,v 1.18 2008/06/17 22:41:30 he Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2002 Allegro Networks, Inc., Wasabi Systems, Inc.
|
||||
@ -42,7 +42,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: gt.c,v 1.17 2008/06/12 22:29:03 cegger Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: gt.c,v 1.18 2008/06/17 22:41:30 he Exp $");
|
||||
|
||||
#include "opt_marvell.h"
|
||||
#include "locators.h"
|
||||
@ -400,7 +400,8 @@ gt_init_interrupt(struct gt_softc *gt)
|
||||
uint32_t
|
||||
gt_read_mpp (void)
|
||||
{
|
||||
return gt_read(device_lookup_private(>_cd, 0), GT_GPP_Value); /* XXX */
|
||||
struct gt_softc *sc = device_lookup_private(>_cd, 0);
|
||||
return gt_read(sc, GT_GPP_Value); /* XXX */
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
Loading…
Reference in New Issue
Block a user