diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2021-08-02 18:22:42 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2021-08-02 18:22:42 +0000 |
commit | e47013f9403fd52c329308bd57d271547f67e48a (patch) | |
tree | c29a3375e4a48d349ea7bc07e913cd1c8f51564c /sys/dev/fdt/rkpwm.c | |
parent | 9950e72de2cfcf415a1c8e742a6205dbab7a9f48 (diff) |
rkpwm(4) device tree bindings were updated to not have clock names anymore,
so simply look up the first clock instead of looking for a specific one by
name. Allows rkpwm(4) to find the clock when using a recent device tree.
From Tomasz Bielecki
ok kettenis@
Diffstat (limited to 'sys/dev/fdt/rkpwm.c')
-rw-r--r-- | sys/dev/fdt/rkpwm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/fdt/rkpwm.c b/sys/dev/fdt/rkpwm.c index 1a8548df16f..f95edeaf158 100644 --- a/sys/dev/fdt/rkpwm.c +++ b/sys/dev/fdt/rkpwm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rkpwm.c,v 1.2 2020/09/08 01:29:04 jmatthew Exp $ */ +/* $OpenBSD: rkpwm.c,v 1.3 2021/08/02 18:22:41 patrick Exp $ */ /* * Copyright (c) 2019 Krystian Lewandowski * Copyright (c) 2019 Patrick Wildt <patrick@blueri.se> @@ -93,7 +93,7 @@ rkpwm_attach(struct device *parent, struct device *self, void *aux) return; } - sc->sc_clkin = clock_get_frequency(faa->fa_node, "pwm"); + sc->sc_clkin = clock_get_frequency(faa->fa_node, NULL); if (sc->sc_clkin == 0) { printf(": no clock\n"); return; |