make xscale_pmnc_write() return void, rather than returning an
uninitialised value that is not used by any caller.
This commit is contained in:
parent
663096a642
commit
c1c5286e41
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: xscale_pmc.c,v 1.9 2005/12/24 20:06:52 perry Exp $ */
|
||||
/* $NetBSD: xscale_pmc.c,v 1.10 2006/05/17 05:16:09 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2002 Wasabi Systems, Inc.
|
||||
@ -36,7 +36,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: xscale_pmc.c,v 1.9 2005/12/24 20:06:52 perry Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: xscale_pmc.c,v 1.10 2006/05/17 05:16:09 mrg Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/malloc.h>
|
||||
@ -86,15 +86,12 @@ xscale_pmnc_read(void)
|
||||
return pmnc;
|
||||
}
|
||||
|
||||
static inline uint32_t
|
||||
static inline void
|
||||
xscale_pmnc_write(uint32_t val)
|
||||
{
|
||||
uint32_t pmnc;
|
||||
|
||||
__asm volatile("mcr p14, 0, %0, c0, c0, 0"
|
||||
: : "r" (val));
|
||||
|
||||
return pmnc;
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user