Commit f86319c
committed
firewire: ohci: use devres for memory object of ohci structure
The managed device resource (devres) framework is convenient to maintain
lifetime of allocated memory object for device.
This commit utilizes the framework for the object of ohci structure. The
extra operation for power management is required in Apple PowerMac based
machines, thus release callback is assigned to the object to call the
operation.
Link: https://lore.kernel.org/r/20230604054451.161076-2-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>1 parent 0258d88 commit f86319c
1 file changed
Lines changed: 17 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3557 | 3557 | | |
3558 | 3558 | | |
3559 | 3559 | | |
| 3560 | + | |
| 3561 | + | |
| 3562 | + | |
| 3563 | + | |
| 3564 | + | |
| 3565 | + | |
| 3566 | + | |
| 3567 | + | |
| 3568 | + | |
3560 | 3569 | | |
3561 | 3570 | | |
3562 | 3571 | | |
| |||
3571 | 3580 | | |
3572 | 3581 | | |
3573 | 3582 | | |
3574 | | - | |
3575 | | - | |
3576 | | - | |
3577 | | - | |
3578 | | - | |
3579 | | - | |
| 3583 | + | |
| 3584 | + | |
| 3585 | + | |
3580 | 3586 | | |
3581 | | - | |
| 3587 | + | |
3582 | 3588 | | |
| 3589 | + | |
3583 | 3590 | | |
3584 | 3591 | | |
3585 | 3592 | | |
3586 | 3593 | | |
3587 | | - | |
| 3594 | + | |
3588 | 3595 | | |
3589 | 3596 | | |
3590 | 3597 | | |
3591 | 3598 | | |
3592 | | - | |
3593 | 3599 | | |
3594 | 3600 | | |
3595 | 3601 | | |
| |||
3748 | 3754 | | |
3749 | 3755 | | |
3750 | 3756 | | |
3751 | | - | |
3752 | | - | |
3753 | | - | |
3754 | | - | |
| 3757 | + | |
3755 | 3758 | | |
3756 | 3759 | | |
3757 | 3760 | | |
| |||
3796 | 3799 | | |
3797 | 3800 | | |
3798 | 3801 | | |
3799 | | - | |
3800 | | - | |
3801 | 3802 | | |
3802 | | - | |
| 3803 | + | |
3803 | 3804 | | |
3804 | 3805 | | |
3805 | 3806 | | |
| |||
0 commit comments