linux_dsm_epyc7002/arch/powerpc/platforms/83xx
Dan Carpenter c65540453e 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: d49747bdfb ("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>
2017-08-31 14:26:05 +10:00
..
asp834x.c powerpc/83xx: factor out the common codes of setup arch functions 2016-09-25 02:38:53 -05:00
Kconfig powerpc: do away with ARCH_[WANT_OPTIONAL|REQUIRE]_GPIOLIB 2016-06-08 09:54:53 +02:00
km83xx.c powerpc/83xx: factor out the common codes of setup arch functions 2016-09-25 02:38:53 -05:00
Makefile powerpc/83xx: rename and update kmeter1 2011-03-15 10:06:37 -05:00
mcu_mpc8349emitx.c powerpc: Convert to using %pOF instead of full_name 2017-08-23 22:27:04 +10:00
misc.c powerpc/83xx: factor out the common codes of setup arch functions 2016-09-25 02:38:53 -05:00
mpc83xx.h powerpc/83xx: factor out the common codes of setup arch functions 2016-09-25 02:38:53 -05:00
mpc830x_rdb.c powerpc/83xx: factor out the common codes of setup arch functions 2016-09-25 02:38:53 -05:00
mpc831x_rdb.c powerpc/83xx: factor out the common codes of setup arch functions 2016-09-25 02:38:53 -05:00
mpc832x_mds.c powerpc/83xx: factor out the common codes of setup arch functions 2016-09-25 02:38:53 -05:00
mpc832x_rdb.c powerpc: Convert to using %pOF instead of full_name 2017-08-23 22:27:04 +10:00
mpc834x_itx.c powerpc/83xx: factor out the common codes of setup arch functions 2016-09-25 02:38:53 -05:00
mpc834x_mds.c powerpc/83xx: factor out the common codes of setup arch functions 2016-09-25 02:38:53 -05:00
mpc836x_mds.c powerpc/83xx: factor out the common codes of setup arch functions 2016-09-25 02:38:53 -05:00
mpc836x_rdk.c powerpc/83xx: factor out the common codes of setup arch functions 2016-09-25 02:38:53 -05:00
mpc837x_mds.c powerpc/83xx: factor out the common codes of setup arch functions 2016-09-25 02:38:53 -05:00
mpc837x_rdb.c powerpc/83xx: factor out the common codes of setup arch functions 2016-09-25 02:38:53 -05:00
sbc834x.c powerpc/83xx: factor out the common codes of setup arch functions 2016-09-25 02:38:53 -05:00
suspend-asm.S tree-wide: fix comment/printk typos 2010-11-01 15:38:34 -04:00
suspend.c powerpc/83xx: Use sizeof correct type when ioremapping 2017-08-31 14:26:05 +10:00
usb.c PowerPC-83xx: Deletion of an unnecessary check before the function call "of_node_put" 2015-01-29 23:16:19 -06:00