Commit 65cba48d authored by Philipp Stanner's avatar Philipp Stanner Committed by Andi Shyti
Browse files

i2c: i801: Remove unnecessary PCI function call



Since the changes in

	commit f748a07a ("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: default avatarPhilipp Stanner <pstanner@redhat.com>
Link: https://lore.kernel.org/r/20241121195624.144839-2-pstanner@redhat.com


Signed-off-by: default avatarAndi Shyti <andi.shyti@kernel.org>
parent 4262df2a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment