diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2017-06-28 14:49:07 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-08-31 14:26:05 +1000 |
commit | c65540453e150844367ffe98e45d5175181b2ec1 (patch) | |
tree | d6965019fd231ec5276709bb084aed8b90e89b17 /arch/powerpc/boot/4xx.c | |
parent | b96672dd840f2231c3e0804842d380c401739733 (diff) | |
download | talos-obmc-linux-c65540453e150844367ffe98e45d5175181b2ec1.tar.gz talos-obmc-linux-c65540453e150844367ffe98e45d5175181b2ec1.zip |
powerpc/83xx: Use sizeof correct type when ioremapping
There is a cut and paste error here so we use sizeof(struct mpc83xx_pmc)
to remap the memory for "clock_regs". That sizeof() is 20 bytes and we
only need to remap 12 bytes. It presumably doesn't affect run time too
much...
I changed them to both use sizeof(*variable_name) because that's the
preferred kernel style these days.
Fixes: d49747bdfb2d ("powerpc/mpc83xx: Power Management support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
[mpe: It will map at least one page anyway, but still a good cleanup]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/boot/4xx.c')
0 files changed, 0 insertions, 0 deletions