History

Merge tag 'pwm/for-6.7-rc5-fixes' of https://git.pengutronix.de/git/ukl/linux

Pull pwm fix from Uwe Kleine-König: "This fixes a null pointer exception in the bcm2835 pwm driver. The problem was introduced by a combination of two commits merged for v6.7-rc1 where each change alone would have been fine. Thanks to Florian Fainelli for noticing and fixing the issue" * tag 'pwm/for-6.7-rc5-fixes' of https://git.pengutronix.de/git/ukl/linux: pwm: bcm2835: Fix NPD in suspend/resume

Linus Torvalds committed 2 years ago

Commit d650b3b2 parents b8b68d2 4e7a8db1 file · +2 −0Browse files

Unified · Split

drivers/pwm/pwm-bcm2835.c+2−0
@@ -155,6 +155,8 @@ static int bcm2835_pwm_probe(struct platform_device *pdev) · 154 unmodified lines
155155 pc->chip.ops = &bcm2835_pwm_ops;
156156 pc->chip.npwm = 2;
157157
158+ platform_set_drvdata(pdev, pc);
159+
158160 ret = devm_pwmchip_add(&pdev->dev, &pc->chip);
159161 if (ret < 0)
160162 return dev_err_probe(&pdev->dev, ret,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t