PCI: Add pci_clear_master() stub for non-CONFIG_PCI
authorSui Jingfeng <suijingfeng@loongson.cn>
Wed, 31 May 2023 10:27:44 +0000 (18:27 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 31 May 2023 17:26:53 +0000 (12:26 -0500)
commit2aa5ac633259843f656eb6ecff4cf01e8e810c5e
treee77d01db79f2a150eba131c6925325349c290790
parentd3c6e265681285e046e0725dcbf5465482371e62
PCI: Add pci_clear_master() stub for non-CONFIG_PCI

Add a pci_clear_master() stub when CONFIG_PCI is not set so drivers that
support both PCI and platform devices don't need #ifdefs or extra Kconfig
symbols for the PCI parts.

[bhelgaas: commit log]
Fixes: 6a479079c072 ("PCI: Add pci_clear_master() as opposite of pci_set_master()")
Link: https://lore.kernel.org/r/20230531102744.2354313-1-suijingfeng@loongson.cn
Signed-off-by: Sui Jingfeng <suijingfeng@loongson.cn>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
include/linux/pci.h