summaryrefslogtreecommitdiffstats
path: root/sys/arm/allwinner/clk/aw_cpuclk.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arm/allwinner/clk/aw_cpuclk.c')
-rw-r--r--sys/arm/allwinner/clk/aw_cpuclk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm/allwinner/clk/aw_cpuclk.c b/sys/arm/allwinner/clk/aw_cpuclk.c
index 7beffcd..d6ae458 100644
--- a/sys/arm/allwinner/clk/aw_cpuclk.c
+++ b/sys/arm/allwinner/clk/aw_cpuclk.c
@@ -95,7 +95,7 @@ aw_cpuclk_attach(device_t dev)
def.clkdef.parent_names = malloc(sizeof(char *) * ncells, M_OFWPROP,
M_WAITOK);
for (i = 0; i < ncells; i++) {
- error = clk_get_by_ofw_index(dev, i, &clk);
+ error = clk_get_by_ofw_index(dev, 0, i, &clk);
if (error != 0) {
device_printf(dev, "cannot get clock %d\n", i);
goto fail;
OpenPOWER on IntegriCloud