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:36:18 +0000 (13:36 +0200)
commit8d7c6fa807645e1664fd8556a05c8fb3d0a7be47
tree605a3fcdfad5c450cb92798a827c98f5fd8e0a5a
parent7fc2172ad4e701d3c6e7dcb7b2efd8df71d2417b
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