From: kettenis Date: Sun, 21 Aug 2016 23:02:32 +0000 (+0000) Subject: Use generic clock API to enable the module clock. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b2bb0ac53abbe55a8b688bf80b7527f9829ec670;p=openbsd Use generic clock API to enable the module clock. --- 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