Commit 9a6582b
PM: domains: use dev_err_probe() to simplify error handling
dev_err_probe() can reduce code size, makes the code easier to read
and has the added benefit of recording the defer reason for later
read out. Use it where appropriate.
This also fixes an issue, where an error message in __genpd_dev_pm_attach
was not terminated by a line break.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>1 parent e7d90cf commit 9a6582b
1 file changed
Lines changed: 6 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2267 | 2267 | | |
2268 | 2268 | | |
2269 | 2269 | | |
2270 | | - | |
2271 | | - | |
2272 | | - | |
2273 | | - | |
2274 | | - | |
2275 | | - | |
| 2270 | + | |
| 2271 | + | |
2276 | 2272 | | |
2277 | 2273 | | |
2278 | 2274 | | |
| |||
2331 | 2327 | | |
2332 | 2328 | | |
2333 | 2329 | | |
2334 | | - | |
2335 | | - | |
2336 | | - | |
| 2330 | + | |
| 2331 | + | |
2337 | 2332 | | |
2338 | 2333 | | |
2339 | 2334 | | |
| |||
2691 | 2686 | | |
2692 | 2687 | | |
2693 | 2688 | | |
2694 | | - | |
2695 | | - | |
2696 | | - | |
2697 | | - | |
2698 | | - | |
2699 | | - | |
| 2689 | + | |
| 2690 | + | |
2700 | 2691 | | |
2701 | 2692 | | |
2702 | 2693 | | |
| |||
0 commit comments