drivers: led: fix led_pwm initialization
The PM control function and the init function were swapped. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
parent
63d0a109c0
commit
d03dbab105
|
@ -155,8 +155,8 @@ static struct led_pwm_data \
|
|||
\
|
||||
DEVICE_DEFINE(led_pwm_##id, \
|
||||
DT_INST_PROP_OR(id, label, "LED_PWM_"#id), \
|
||||
device_pm_control_nop, \
|
||||
&led_pwm_init, \
|
||||
device_pm_control_nop, \
|
||||
&led_pwm_data_##id, \
|
||||
&led_pwm_config_##id, \
|
||||
POST_KERNEL, CONFIG_LED_INIT_PRIORITY, \
|
||||
|
|
Loading…
Reference in a new issue