]> git.itanic.dy.fi Git - linux-stable/commit
powerpc/85xx: mpc85xx_ds: Simplify mpc85xx_exclude_device() function
authorPali Rohár <pali@kernel.org>
Sun, 9 Apr 2023 00:08:06 +0000 (02:08 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 20 Apr 2023 00:20:49 +0000 (10:20 +1000)
commit485536b9f289c8c3c86ecaad0f05a1a7b633cb8a
tree8c289bdd24ec2f535147e4ee585f9a7c4f090b5e
parent821b3a471f686910b97228010861c4a99d07fd86
powerpc/85xx: mpc85xx_ds: Simplify mpc85xx_exclude_device() function

Function mpc85xx_exclude_device() is installed and used only when
pci_with_uli is fsl_pci_primary. So replace check for pci_with_uli by
fsl_pci_primary in mpc85xx_exclude_device() and move pci_with_uli variable
declaration into function mpc85xx_ds_uli_init() where it is used.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230409000812.18904-3-pali@kernel.org
arch/powerpc/platforms/85xx/mpc85xx_ds.c