When 119a508c4dc9 ("pwm: bcm2835: Add support for suspend/resume") was sent out on October 11th,, there was still a call to platform_set_drvdata() which would ensure that the driver private data structure could be used in bcm2835_pwm_{suspend,resume}. A cleanup now merged as commit commit 2ce7b7f6704c ("pwm: bcm2835: Simplify using devm functions") removed that call which would now cause a NPD in bcm2835_pwm_{suspend,resume} as a consequence.
Unified · Split
| @@ -155,6 +155,8 @@ static int bcm2835_pwm_probe(struct platform_device *pdev) · 154 unmodified lines | ||
| 155 | 155 | pc->chip.ops = &bcm2835_pwm_ops; |
| 156 | 156 | pc->chip.npwm = 2; |
| 157 | 157 | |
| 158 | + platform_set_drvdata(pdev, pc); | |
| 159 | + | |
| 158 | 160 | ret = devm_pwmchip_add(&pdev->dev, &pc->chip); |
| 159 | 161 | if (ret < 0) |
| 160 | 162 | return dev_err_probe(&pdev->dev, ret, |