EDAC: simplify total memory calculation
Chris Packham
chris.packham at alliedtelesis.co.nz
Wed Jun 7 09:54:57 AEST 2017
This take the approach used by cell_edac.c to obtain the total memory from
the devicetree and applies it to mv64x60_edac.c, altera_edac.c and
cpc925_edac.c which were all manually parsing the reg property. In the case
of mv64x60 this actually fixes cases where #address/size-cells != 1. For
altera and cpc925 this is just a cleanup.
Chris Packham (3):
EDAC: mv64x60: calculate memory size correctly
EDAC: altera: simplify calculation of total memory
EDAC: cpc925: simplify calculation of total memory
drivers/edac/altera_edac.c | 24 ++++++++----------------
drivers/edac/cpc925_edac.c | 32 ++++++++++----------------------
drivers/edac/mv64x60_edac.c | 17 +++++++++++------
3 files changed, 29 insertions(+), 44 deletions(-)
--
2.13.0
More information about the Linuxppc-dev
mailing list