Skip to content

Commit 57ca6af

Browse files
Philipp Stannerbjorn-helgaas
authored andcommitted
drivers/xen: Use never-managed version of pci_intx()
pci_intx() is a hybrid function which can sometimes be managed through devres. To remove this hybrid nature from pci_intx(), it is necessary to port users to either an always-managed or a never-managed version. xen enables its PCI device with pci_enable_device(). Thus, it needs the never-managed version. Replace pci_intx() with pci_intx_unmanaged(). Link: https://lore.kernel.org/r/20241209130632.132074-4-pstanner@redhat.com Signed-off-by: Philipp Stanner <pstanner@redhat.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Juergen Gross <jgross@suse.com>
1 parent f546e80 commit 57ca6af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/xen/xen-pciback/conf_space_header.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ static int command_write(struct pci_dev *dev, int offset, u16 value, void *data)
106106

107107
if (dev_data && dev_data->allow_interrupt_control &&
108108
((cmd->val ^ value) & PCI_COMMAND_INTX_DISABLE))
109-
pci_intx(dev, !(value & PCI_COMMAND_INTX_DISABLE));
109+
pci_intx_unmanaged(dev, !(value & PCI_COMMAND_INTX_DISABLE));
110110

111111
cmd->val = value;
112112

0 commit comments

Comments
 (0)