Commit 819c0c3
usb: dwc3: rtk: return directly and simplify with devm_platform_ioremap_resource
Use devm_platform_ioremap_resource() wrapper instead of two calls, which
together with returning directly instead of useless goto, allows to
nicely simplify the probe() function.
Signed-off-by: Krzysztof Kozlowski <[email protected]>
Acked-by: Thinh Nguyen <[email protected]>
Link: https://lore.kernel.org/r/20240814-b4-cleanup-h-of-node-put-usb-v1-10-95481b9682bc@linaro.org
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent f93e96c commit 819c0c3
1 file changed
+8
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | | - | |
362 | 361 | | |
363 | 362 | | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
| 363 | + | |
| 364 | + | |
368 | 365 | | |
369 | 366 | | |
370 | 367 | | |
371 | 368 | | |
372 | 369 | | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
385 | 373 | | |
386 | 374 | | |
387 | 375 | | |
388 | 376 | | |
389 | 377 | | |
390 | 378 | | |
391 | 379 | | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
| 380 | + | |
| 381 | + | |
396 | 382 | | |
397 | 383 | | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
| 384 | + | |
402 | 385 | | |
403 | 386 | | |
404 | 387 | | |
| |||
0 commit comments