diff options
author | 2019-08-26 11:24:03 +0000 | |
---|---|---|
committer | 2019-08-26 11:24:03 +0000 | |
commit | 474c1fcb952cc9ebaae20e0a24d327025f9b05a7 (patch) | |
tree | 63ac47043dd7cbb72caf9861ed1cf1662f5876c3 /sys/dev/fdt/dwpcie.c | |
parent | remove some debug cruft that i should have removed after the addr64 stuff (diff) | |
download | wireguard-openbsd-474c1fcb952cc9ebaae20e0a24d327025f9b05a7.tar.xz wireguard-openbsd-474c1fcb952cc9ebaae20e0a24d327025f9b05a7.zip |
Remove unnecessary retrieval of the GPC regmap. We don't need it since
the imxgpc(4)'s power domain framework will take care of the registers
and thus dwpcie(4) hasn't touched the registers itself anyway.
ok kettenis@
Diffstat (limited to 'sys/dev/fdt/dwpcie.c')
-rw-r--r-- | sys/dev/fdt/dwpcie.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/fdt/dwpcie.c b/sys/dev/fdt/dwpcie.c index d58845df145..f7194dee960 100644 --- a/sys/dev/fdt/dwpcie.c +++ b/sys/dev/fdt/dwpcie.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dwpcie.c,v 1.14 2019/06/03 00:43:26 kettenis Exp $ */ +/* $OpenBSD: dwpcie.c,v 1.15 2019/08/26 11:24:03 patrick Exp $ */ /* * Copyright (c) 2018 Mark Kettenis <kettenis@openbsd.org> * @@ -599,15 +599,13 @@ dwpcie_imx8mq_init(struct dwpcie_softc *sc) { uint32_t *clkreq_gpio, *disable_gpio, *reset_gpio; ssize_t clkreq_gpiolen, disable_gpiolen, reset_gpiolen; - struct regmap *anatop, *gpc, *gpr; + struct regmap *anatop, *gpr; uint32_t off, reg; int timo; anatop = regmap_bycompatible("fsl,imx8mq-anatop"); - gpc = regmap_bycompatible("fsl,imx8mq-gpc"); gpr = regmap_bycompatible("fsl,imx8mq-iomuxc-gpr"); KASSERT(anatop != NULL); - KASSERT(gpc != NULL); KASSERT(gpr != NULL); clkreq_gpiolen = OF_getproplen(sc->sc_node, "clkreq-gpio"); |