Re: [PATCH] i2c: i801: Remove unnecessary PCI function call
From: Andi Shyti
Date: Thu Jan 09 2025 - 10:47:00 EST
Hi Philipp,
On Thu, Nov 21, 2024 at 08:56:25PM +0100, Philipp Stanner wrote:
> Since the changes in
>
> commit f748a07a0b64 ("PCI: Remove legacy pcim_release()")
>
> all pcim_enable_device() does is set up a callback that disables the
> device from being disabled from driver detach. The function
> pcim_pin_device() prevents said disabling. pcim_enable_device(),
> therefore, sets up an action that is removed immediately afterwards by
> pcim_pin_device().
>
> Replace pcim_enable_device() with pci_enable_device() and remove the
> unnecessary call to pcim_pin_device().
>
> Signed-off-by: Philipp Stanner <pstanner@xxxxxxxxxx>
nice cleanup, merged to i2c/i2c-host.
Thanks,
Andi