From b2bb0ac53abbe55a8b688bf80b7527f9829ec670 Mon Sep 17 00:00:00 2001 From: kettenis Date: Sun, 21 Aug 2016 23:02:32 +0000 Subject: [PATCH] Use generic clock API to enable the module clock. --- sys/arch/armv7/sunxi/sximmc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/arch/armv7/sunxi/sximmc.c b/sys/arch/armv7/sunxi/sximmc.c index 38276a0b069..9144e2b5981 100644 --- a/sys/arch/armv7/sunxi/sximmc.c +++ b/sys/arch/armv7/sunxi/sximmc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sximmc.c,v 1.2 2016/08/20 19:41:14 kettenis Exp $ */ +/* $OpenBSD: sximmc.c,v 1.3 2016/08/21 23:02:32 kettenis Exp $ */ /* $NetBSD: awin_mmc.c,v 1.23 2015/11/14 10:32:40 bouyer Exp $ */ /*- @@ -44,6 +44,7 @@ #include #include +#include #include #include #include @@ -365,7 +366,7 @@ sximmc_attach(struct device *parent, struct device *self, void *aux) pinctrl_byname(faa->fa_node, "default"); /* enable clock */ - sxiccmu_enablemodule(CCMU_SDMMC0 + sc->sc_unit); + clock_enable(faa->fa_node, NULL); delay(5000); #if 0 -- 2.20.1