diff options
Diffstat (limited to 'drivers/pwm/pwm-stm32.c')
-rw-r--r-- | drivers/pwm/pwm-stm32.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pwm/pwm-stm32.c b/drivers/pwm/pwm-stm32.c index 5c2029ab6a..7c7a8e2ce6 100644 --- a/drivers/pwm/pwm-stm32.c +++ b/drivers/pwm/pwm-stm32.c @@ -377,8 +377,9 @@ static int stm32_pwm_probe(struct device *dev) chip->ops = &stm32pwm_ops; chip->id = i; + chip->dev = dev; - ret = pwmchip_add(chip, dev); + ret = pwmchip_add(chip); if (ret < 0) { dev_err(dev, "failed to add pwm chip %d\n", ret); return ret; |