Commit b6376db
spi: Simplify devm_spi_*_controller()
Use devm_add_action_or_reset() instead of devres_alloc() and
devres_add(), which works the same. This will simplify the
code. There is no functional changes.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20260108175145.3535441-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>1 parent 19a4505 commit b6376db
1 file changed
Lines changed: 17 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3079 | 3079 | | |
3080 | 3080 | | |
3081 | 3081 | | |
3082 | | - | |
| 3082 | + | |
3083 | 3083 | | |
3084 | | - | |
| 3084 | + | |
3085 | 3085 | | |
3086 | 3086 | | |
3087 | 3087 | | |
| |||
3103 | 3103 | | |
3104 | 3104 | | |
3105 | 3105 | | |
3106 | | - | |
| 3106 | + | |
| 3107 | + | |
3107 | 3108 | | |
3108 | | - | |
3109 | | - | |
3110 | | - | |
| 3109 | + | |
| 3110 | + | |
3111 | 3111 | | |
3112 | 3112 | | |
3113 | | - | |
3114 | | - | |
3115 | | - | |
3116 | | - | |
3117 | | - | |
3118 | | - | |
3119 | | - | |
3120 | | - | |
| 3113 | + | |
| 3114 | + | |
| 3115 | + | |
| 3116 | + | |
| 3117 | + | |
3121 | 3118 | | |
3122 | 3119 | | |
3123 | 3120 | | |
| |||
3378 | 3375 | | |
3379 | 3376 | | |
3380 | 3377 | | |
3381 | | - | |
| 3378 | + | |
3382 | 3379 | | |
3383 | | - | |
| 3380 | + | |
3384 | 3381 | | |
3385 | 3382 | | |
3386 | 3383 | | |
| |||
3398 | 3395 | | |
3399 | 3396 | | |
3400 | 3397 | | |
3401 | | - | |
3402 | 3398 | | |
3403 | 3399 | | |
3404 | | - | |
3405 | | - | |
3406 | | - | |
3407 | | - | |
3408 | 3400 | | |
3409 | | - | |
3410 | | - | |
3411 | | - | |
3412 | | - | |
3413 | | - | |
3414 | | - | |
| 3401 | + | |
| 3402 | + | |
| 3403 | + | |
| 3404 | + | |
3415 | 3405 | | |
3416 | | - | |
3417 | 3406 | | |
3418 | 3407 | | |
3419 | 3408 | | |
| |||
0 commit comments