Skip to contentSkip to conversation

powerpc: Fix typo in powermac platform functions

PATCH New Benjamin Herrenschmidt 1 participant 1 message Sep 4, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: Fix typo in powermac platform functions

New sparse caught that typo which could have caused erratic hardware behaviour on some machines if the platform functions are used by the firmware to change bits in some FCR registers.

arch/powerpc/platforms/powermac/pfunc_base.c +1 -1
Index: linux-work/arch/powerpc/platforms/powermac/pfunc_base.c
===================================================================
@@ -256,7 +256,7 @@
 	.write_reg32		= macio_do_write_reg32,
 	.read_reg32		= macio_do_read_reg32,
 	.write_reg8		= macio_do_write_reg8,
-	.read_reg32		= macio_do_read_reg8,
+	.read_reg8		= macio_do_read_reg8,
 	.read_reg32_msrx	= macio_do_read_reg32_msrx,
 	.read_reg8_msrx		= macio_do_read_reg8_msrx,
 	.write_reg32_slm	= macio_do_write_reg32_slm,