m68k: mac: Remove redundant VIA register writes
authorFinn Thain <fthain@telegraphics.com.au>
Fri, 20 Nov 2020 04:39:56 +0000 (15:39 +1100)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 23 Nov 2020 10:30:56 +0000 (11:30 +0100)
commit0c450b8e7882e42c3f65ab434c48cc110640de92
tree704576b431d39a7a45d93dc72eaf2550e641965a
parent471037e2c9bbc96048a024b68bc9873b588fbe96
m68k: mac: Remove redundant VIA register writes

There's no need to write the same value to the timer latch and timer
counter registers. Values written to the counter registers get stored
in the latches anyway. The write to vT1CH copies the latch values to
the counter.

Cc: Joshua Thompson <funaho@jurai.org>
Tested-by: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Link: https://lore.kernel.org/r/c6b1d9620af3e8f89dd0157a41fa4147294b251d.1605847196.git.fthain@telegraphics.com.au
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/mac/via.c