Skip to content

Commit 391057d

Browse files
Markos Chandrasralfbaechle
authored andcommitted
MIPS: CPC: Fix type for GCR CPC base reg for 64-bit
The GCR CPC base register is 64-bit on 64-bit processors so use the appropriate field. Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/10645/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 038b0f5 commit 391057d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/mips/kernel/mips-cpc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ static DEFINE_PER_CPU_ALIGNED(unsigned long, cpc_core_lock_flags);
2323

2424
phys_addr_t __weak mips_cpc_phys_base(void)
2525
{
26-
u32 cpc_base;
26+
unsigned long cpc_base;
2727

2828
if (!mips_cm_present())
2929
return 0;

0 commit comments

Comments
 (0)