mirror of
https://github.com/opnsense/src.git
synced 2026-06-13 18:50:31 -04:00
am335x_pwm_config_ecap: Use devclass_find to lookup devclass.
Differential Revision: https://reviews.freebsd.org/D35082
This commit is contained in:
parent
51f481235c
commit
d4fa375a0e
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue