Commit 010ddb8
power: supply: ab8500_fg: Allocate wq in probe
The workqueue is allocated in bind() but all interrupts are
registered in probe().
Some interrupts put work on the workqueue, which can have
bad side effects.
Allocate the workqueue in probe() instead, destroy it in
.remove() and make unbind() simply flush the workqueue.
Fixes: 1c1f13a ("power: supply: ab8500: Move to componentized binding")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>1 parent f61509a commit 010ddb8
1 file changed
Lines changed: 10 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3037 | 3037 | | |
3038 | 3038 | | |
3039 | 3039 | | |
3040 | | - | |
3041 | | - | |
3042 | | - | |
3043 | | - | |
3044 | | - | |
3045 | | - | |
3046 | | - | |
3047 | 3040 | | |
3048 | 3041 | | |
3049 | 3042 | | |
| |||
3067 | 3060 | | |
3068 | 3061 | | |
3069 | 3062 | | |
3070 | | - | |
3071 | | - | |
| 3063 | + | |
3072 | 3064 | | |
3073 | 3065 | | |
3074 | 3066 | | |
| |||
3117 | 3109 | | |
3118 | 3110 | | |
3119 | 3111 | | |
| 3112 | + | |
| 3113 | + | |
| 3114 | + | |
| 3115 | + | |
| 3116 | + | |
| 3117 | + | |
| 3118 | + | |
3120 | 3119 | | |
3121 | 3120 | | |
3122 | 3121 | | |
| |||
3227 | 3226 | | |
3228 | 3227 | | |
3229 | 3228 | | |
| 3229 | + | |
| 3230 | + | |
3230 | 3231 | | |
3231 | 3232 | | |
3232 | 3233 | | |
| |||
0 commit comments