]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
parisc: Move pci_dev_is_behind_card_dino to where it is used
authorGuenter Roeck <linux@roeck-us.net>
Wed, 8 Sep 2021 15:30:41 +0000 (08:30 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 26 Sep 2021 11:33:46 +0000 (13:33 +0200)
commitc4b7c8ec7445879ae38cacb6cab8be545d285bd0
tree688984966430aa08124cadc25a50b3250f1926b5
parent5d2dae0e30143a5d70279498e7fa8dbe6ac1ff35
parisc: Move pci_dev_is_behind_card_dino to where it is used

[ Upstream commit 907872baa9f1538eed02ec737b8e89eba6c6e4b9 ]

parisc build test images fail to compile with the following error.

drivers/parisc/dino.c:160:12: error:
'pci_dev_is_behind_card_dino' defined but not used

Move the function just ahead of its only caller to avoid the error.

Fixes: 5fa1659105fa ("parisc: Disable HP HSC-PCI Cards to prevent kernel crash")
Cc: Helge Deller <deller@gmx.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/parisc/dino.c