diff --git a/drivers/pwm/Kconfig.nrfx b/drivers/pwm/Kconfig.nrfx index 73c620c16e7..e9cac355104 100644 --- a/drivers/pwm/Kconfig.nrfx +++ b/drivers/pwm/Kconfig.nrfx @@ -12,43 +12,3 @@ menuconfig PWM_NRFX help Enable support for nrfx Hardware PWM driver for nRF52 MCU series. -if PWM_NRFX - -if PWM_0 -config PWM_0_NAME - string "PWM module 0 device name" - default "PWM_0" - help - Specify the device name for the Nordic Semiconductor nRF52 series HW - PWM module 0. - -endif # PWM_0 - -if PWM_1 -config PWM_1_NAME - string "PWM module 1 device name" - default "PWM_1" - help - Specify the device name for the Nordic Semiconductor nRF52 series HW - PWM module 1. -endif # PWM_1 - -if PWM_2 -config PWM_2_NAME - string "PWM module 2 device name" - default "PWM_2" - help - Specify the device name for the Nordic Semiconductor nRF52 series HW - PWM module 2. -endif # PWM_2 - -if PWM_3 -config PWM_3_NAME - string "PWM module 3 device name" - default "PWM_3" - help - Specify the device name for the Nordic Semiconductor nRF52 series HW - PWM module 3. -endif # PWM_3 - -endif # PWM_NRFX diff --git a/drivers/pwm/pwm_nrfx.c b/drivers/pwm/pwm_nrfx.c index 0397239e9ee..8acd6fef681 100644 --- a/drivers/pwm/pwm_nrfx.c +++ b/drivers/pwm/pwm_nrfx.c @@ -372,7 +372,8 @@ static int pwm_nrfx_pm_control(struct device *dev, .seq.length = NRF_PWM_CHANNEL_COUNT \ }; \ PWM_NRFX_PM_CONTROL(idx) \ - DEVICE_DEFINE(pwm_nrfx_##idx, CONFIG_PWM_##idx##_NAME, \ + DEVICE_DEFINE(pwm_nrfx_##idx, \ + DT_NORDIC_NRF_PWM_PWM_##idx##_LABEL, \ pwm_nrfx_init, pwm_##idx##_nrfx_pm_control, \ &pwm_nrfx_##idx##_data, \ &pwm_nrfx_##idx##_config, \