Commit 0dc6047
committed
i2c: i801: Remove unnecessary PCI function call
JIRA: https://issues.redhat.com/browse/RHEL-47426
commit 65cba48
Author: Philipp Stanner <pstanner@redhat.com>
Date: Thu Nov 21 20:56:25 2024 +0100
i2c: i801: Remove unnecessary PCI function call
Since the changes in
commit f748a07 ("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@redhat.com>
Link: https://lore.kernel.org/r/20241121195624.144839-2-pstanner@redhat.com
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: David Arcari <darcari@redhat.com>1 parent f5ed44b commit 0dc6047
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1558 | 1558 | | |
1559 | 1559 | | |
1560 | 1560 | | |
1561 | | - | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
1562 | 1566 | | |
1563 | 1567 | | |
1564 | 1568 | | |
1565 | 1569 | | |
1566 | 1570 | | |
1567 | | - | |
1568 | 1571 | | |
1569 | 1572 | | |
1570 | 1573 | | |
| |||
0 commit comments