macintosh/via-pmu: Replace via pointer with via1 and via2 pointers
authorFinn Thain <fthain@telegraphics.com.au>
Mon, 2 Jul 2018 08:21:18 +0000 (04:21 -0400)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 31 Jul 2018 09:56:40 +0000 (19:56 +1000)
commitc70c35da52c064983199b1b1cbd4daa5a07ef60c
tree9c4c0a52e1cfadf7340c356357ce2d09be7af0e4
parentc57902d52e2d61299872ddc89645d3aa299f1b91
macintosh/via-pmu: Replace via pointer with via1 and via2 pointers

On most PowerPC Macs, the PMU driver uses the shift register and
IO port B from a single VIA chip.

On 68k and early PowerPC PowerBooks, the driver uses the shift register
from one VIA chip together with IO port B from another.

Replace via with via1 and via2 to accommodate this. For the
CONFIG_PPC_PMAC case, set via1 = via2 so there is no change.

Tested-by: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/macintosh/via-pmu.c