Re: [PATCH 08/51] drm/i915: Use drmm_add_final_kfree

2020-03-26 Thread Daniel Vetter
On Thu, Mar 26, 2020 at 2:11 PM Jani Nikula wrote: > > On Mon, 23 Mar 2020, Daniel Vetter wrote: > > With this we can drop the final kfree from the release function. > > > > The mock device in the selftests needed it's pci_device split > > up from the drm_device. In the future we could simplify

Re: [PATCH 08/51] drm/i915: Use drmm_add_final_kfree

2020-03-26 Thread Jani Nikula
On Mon, 23 Mar 2020, Daniel Vetter wrote: > With this we can drop the final kfree from the release function. > > The mock device in the selftests needed it's pci_device split > up from the drm_device. In the future we could simplify this again > by allocating the pci_device as a managed

[PATCH 08/51] drm/i915: Use drmm_add_final_kfree

2020-03-23 Thread Daniel Vetter
With this we can drop the final kfree from the release function. The mock device in the selftests needed it's pci_device split up from the drm_device. In the future we could simplify this again by allocating the pci_device as a managed allocation too. v2: I overlooked that i915_driver_destroy is

[PATCH 08/51] drm/i915: Use drmm_add_final_kfree

2020-03-02 Thread Daniel Vetter
With this we can drop the final kfree from the release function. The mock device in the selftests needed it's pci_device split up from the drm_device. In the future we could simplify this again by allocating the pci_device as a managed allocation too. v2: I overlooked that i915_driver_destroy is

[PATCH 08/51] drm/i915: Use drmm_add_final_kfree

2020-02-27 Thread Daniel Vetter
With this we can drop the final kfree from the release function. The mock device in the selftests needed it's pci_device split up from the drm_device. In the future we could simplify this again by allocating the pci_device as a managed allocation too. v2: I overlooked that i915_driver_destroy is

[PATCH 08/51] drm/i915: Use drmm_add_final_kfree

2020-02-21 Thread Daniel Vetter
With this we can drop the final kfree from the release function. The mock device in the selftests needed it's pci_device split up from the drm_device. In the future we could simplify this again by allocating the pci_device as a managed allocation too. v2: I overlooked that i915_driver_destroy is