Commit e96397d
phy: rockchip-pcie: Use devm_clk_get_enabled() helper
Use devm_clk_get_enabled() instead of devm_clk_get() to make the code
cleaner and avoid calling clk_disable_unprepare(), as this is exactly
what this function does. Use the dev_err_probe() helper to simplify
error handling during probe.
Refactor the mutex handling in the rockchip_pcie_phy_init() function
to improve code readability and maintainability. The goto statement has
been removed, and the mutex_unlock call is now directly within the
conditional block.
Return the result of reset_control_assert() function, with 0 indicating
success and an error code indicating failure
Signed-off-by: Anand Moon <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>1 parent 84de918 commit e96397d
1 file changed
+10
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
284 | 280 | | |
285 | 281 | | |
286 | 282 | | |
287 | 283 | | |
288 | 284 | | |
289 | | - | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
290 | 288 | | |
291 | 289 | | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | 290 | | |
302 | 291 | | |
303 | 292 | | |
| |||
312 | 301 | | |
313 | 302 | | |
314 | 303 | | |
315 | | - | |
316 | | - | |
317 | 304 | | |
318 | 305 | | |
319 | 306 | | |
| |||
375 | 362 | | |
376 | 363 | | |
377 | 364 | | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
383 | 369 | | |
384 | 370 | | |
385 | 371 | | |
| |||
0 commit comments