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:37:29 +0000 (13:37 +0200)
commit51723ba63725ca1c2aad66569c979799fe578a05
tree584d8895a497867c59fce16bcbf2ecf38b1784b1
parent5e0854da3322d740821f6b7b0ffc3b621092baef
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