summaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms/85xx/c293pcie.c
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@csgroup.eu>2023-02-18 12:15:50 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2023-03-16 00:56:48 +0300
commit0aafbdf35c75cbfec82636d01e6dc7950bc1507c (patch)
tree9f8885c561ae24ed14b65d8190520aec7cacc81f /arch/powerpc/platforms/85xx/c293pcie.c
parent5a81c02d0cc5067170e49452d55a4dfd21333257 (diff)
downloadlinux-0aafbdf35c75cbfec82636d01e6dc7950bc1507c.tar.xz
powerpc: Make generic_calibrate_decr() the default
ppc_md.calibrate_decr() is a mandatory item. Its nullity is never checked so it must be non null on all platforms. Most platforms define generic_calibrate_decr() as their ppc_md.calibrate_decr(). Have time_init() call generic_calibrate_decr() when ppc_md.calibrate_decr() is NULL, and remove default assignment from all machines. Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/6cb9865d916231c38401ba34ad1a98c249fae135.1676711562.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'arch/powerpc/platforms/85xx/c293pcie.c')
-rw-r--r--arch/powerpc/platforms/85xx/c293pcie.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/85xx/c293pcie.c b/arch/powerpc/platforms/85xx/c293pcie.c
index fbf1875e5835..34975708be79 100644
--- a/arch/powerpc/platforms/85xx/c293pcie.c
+++ b/arch/powerpc/platforms/85xx/c293pcie.c
@@ -51,6 +51,5 @@ define_machine(c293_pcie) {
.setup_arch = c293_pcie_setup_arch,
.init_IRQ = c293_pcie_pic_init,
.get_irq = mpic_get_irq,
- .calibrate_decr = generic_calibrate_decr,
.progress = udbg_progress,
};