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:
Peter Bigot 2020-12-20 06:10:33 -06:00 committed by Kumar Gala
parent 63d0a109c0
commit d03dbab105

View file

@ -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, \