projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53c7972
)
pwm: tiecap: Set driver data before runtime PM enable
author
Thierry Reding
<thierry.reding@gmail.com>
Mon, 21 Aug 2017 06:31:37 +0000
(08:31 +0200)
committer
Thierry Reding
<thierry.reding@gmail.com>
Mon, 21 Aug 2017 06:31:37 +0000
(08:31 +0200)
Runtime PM callbacks can be run right after runtime PM is enabled, so
make sure to set the driver data before that. This is unlikely to ever
happen with the current driver, but it doesn't hurt to follow best
practices anyway.
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-tiecap.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/pwm/pwm-tiecap.c
b/drivers/pwm/pwm-tiecap.c
index 635408af2cf0325704885c363376128659229a5d..34b228626bd58b8b3ab1b767084d4ee286aaf649 100644
(file)
--- a/
drivers/pwm/pwm-tiecap.c
+++ b/
drivers/pwm/pwm-tiecap.c
@@
-254,9
+254,9
@@
static int ecap_pwm_probe(struct platform_device *pdev)
return ret;
}
+ platform_set_drvdata(pdev, pc);
pm_runtime_enable(&pdev->dev);
- platform_set_drvdata(pdev, pc);
return 0;
}