git: d4fa375a0e4f - main - am335x_pwm_config_ecap: Use devclass_find to lookup devclass.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 05 May 2022 23:42:32 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=d4fa375a0e4fc5f8ad0cfa67ae667ba715a0d13a commit d4fa375a0e4fc5f8ad0cfa67ae667ba715a0d13a Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-05-05 23:40:43 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-05 23:40:43 +0000 am335x_pwm_config_ecap: Use devclass_find to lookup devclass. Differential Revision: https://reviews.freebsd.org/D35082 --- sys/arm/ti/am335x/am335x_ecap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/arm/ti/am335x/am335x_ecap.c b/sys/arm/ti/am335x/am335x_ecap.c index 31e340a69c33..17bddb5c1a8f 100644 --- a/sys/arm/ti/am335x/am335x_ecap.c +++ b/sys/arm/ti/am335x/am335x_ecap.c @@ -107,7 +107,7 @@ am335x_pwm_config_ecap(int unit, int period, int duty) struct am335x_ecap_softc *sc; uint16_t reg; - dev = devclass_get_device(am335x_ecap_devclass, unit); + dev = devclass_get_device(devclass_find(am335x_ecap_driver.name), unit); if (dev == NULL) return (ENXIO);