mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
pwm: omap-dmtimer: Return -EPROBE_DEFER if no dmtimer platform data
If a pwm-omap-dmtimer is probed before the dmtimer it uses, the platform
data won't be set yet.
Fixes: ac30751df9 ("ARM: OMAP: pdata-quirks: Remove unused timer pdata")
Cc: <[email protected]> # 4.17+
Signed-off-by: David Rivshin <[email protected]>
Acked-by: Pavel Machek <[email protected]>
Tested-by: Pavel Machek <[email protected]>
Acked-by: Ladislav Michl <[email protected]>
Tested-by: Andreas Kemnade <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
This commit is contained in:
parent
19ad2b75c6
commit
43725feb59
1 changed files with 3 additions and 2 deletions
|
|
@ -264,8 +264,9 @@ static int pwm_omap_dmtimer_probe(struct platform_device *pdev)
|
|||
|
||||
timer_pdata = dev_get_platdata(&timer_pdev->dev);
|
||||
if (!timer_pdata) {
|
||||
dev_err(&pdev->dev, "dmtimer pdata structure NULL\n");
|
||||
ret = -EINVAL;
|
||||
dev_dbg(&pdev->dev,
|
||||
"dmtimer pdata structure NULL, deferring probe\n");
|
||||
ret = -EPROBE_DEFER;
|
||||
goto put;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue