]> git.hungrycats.org Git - linux/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Jul 2023 17:39:46 +0000 (19:39 +0200)
commit9007cb56931ad4d237de499b12553fdb17c33420
tree46d913b7273c6c39d087c573a39ba3043237060e
parent34bc699225d77e4a6519e65b2e48a5ff410166fd
PCI: Add pci_clear_master() stub for non-CONFIG_PCI

[ Upstream commit 2aa5ac633259843f656eb6ecff4cf01e8e810c5e ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/pci.h