Fix argument to fdtbus_get_reg, from Jared.
This commit is contained in:
parent
d3ce678f8d
commit
382200828d
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: cpufreq_dt.c,v 1.9 2019/10/06 11:28:24 jmcneill Exp $ */
|
/* $NetBSD: cpufreq_dt.c,v 1.10 2019/10/07 13:54:59 martin Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2015-2017 Jared McNeill <jmcneill@invisible.ca>
|
* Copyright (c) 2015-2017 Jared McNeill <jmcneill@invisible.ca>
|
||||||
@ -27,7 +27,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: cpufreq_dt.c,v 1.9 2019/10/06 11:28:24 jmcneill Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: cpufreq_dt.c,v 1.10 2019/10/07 13:54:59 martin Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
@ -271,7 +271,7 @@ cpufreq_dt_init_sysctl(struct cpufreq_dt_softc *sc)
|
|||||||
const struct sysctlnode *node, *cpunode;
|
const struct sysctlnode *node, *cpunode;
|
||||||
struct sysctllog *cpufreq_log = NULL;
|
struct sysctllog *cpufreq_log = NULL;
|
||||||
struct cpu_info *ci;
|
struct cpu_info *ci;
|
||||||
uint64_t mpidr;
|
bus_addr_t mpidr;
|
||||||
int error, i;
|
int error, i;
|
||||||
|
|
||||||
if (fdtbus_get_reg(sc->sc_phandle, 0, &mpidr, 0) != 0)
|
if (fdtbus_get_reg(sc->sc_phandle, 0, &mpidr, 0) != 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user