Commit 9e697ef
cpufreq: qcom-nvmem: eliminate uses of of_node_put()
Make use of the __free() macro to automate memory deallocation when
the existing device nodes get out of scope, removing the need for
of_node_put() and therefore increasing code safety if more error paths
are added to the driver, which could miss the required of_node_put()
as it already occurred with commit '57f2f8b4aa0c ("cpufreq: qcom:
Refactor the driver to make it easier to extend")'.
Signed-off-by: Javier Carrasco <[email protected]>
Signed-off-by: Viresh Kumar <[email protected]>1 parent d01c84b commit 9e697ef
1 file changed
+7
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
458 | | - | |
459 | 458 | | |
460 | 459 | | |
461 | 460 | | |
| |||
467 | 466 | | |
468 | 467 | | |
469 | 468 | | |
470 | | - | |
| 469 | + | |
| 470 | + | |
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
476 | | - | |
477 | | - | |
| 476 | + | |
478 | 477 | | |
479 | | - | |
480 | 478 | | |
481 | 479 | | |
482 | 480 | | |
483 | | - | |
484 | | - | |
| 481 | + | |
485 | 482 | | |
486 | | - | |
487 | 483 | | |
488 | 484 | | |
489 | 485 | | |
490 | | - | |
491 | | - | |
| 486 | + | |
492 | 487 | | |
493 | | - | |
494 | 488 | | |
495 | 489 | | |
496 | 490 | | |
497 | | - | |
498 | | - | |
| 491 | + | |
499 | 492 | | |
500 | 493 | | |
501 | | - | |
502 | 494 | | |
503 | 495 | | |
504 | 496 | | |
505 | 497 | | |
506 | | - | |
507 | 498 | | |
508 | 499 | | |
509 | 500 | | |
510 | 501 | | |
511 | 502 | | |
512 | | - | |
513 | 503 | | |
514 | 504 | | |
515 | 505 | | |
| |||
645 | 635 | | |
646 | 636 | | |
647 | 637 | | |
648 | | - | |
| 638 | + | |
649 | 639 | | |
650 | 640 | | |
651 | 641 | | |
652 | 642 | | |
653 | 643 | | |
654 | 644 | | |
655 | 645 | | |
656 | | - | |
657 | 646 | | |
658 | 647 | | |
659 | 648 | | |
| |||
0 commit comments