[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170606235500.22772-1-chris.packham@alliedtelesis.co.nz>
Date: Wed, 7 Jun 2017 11:54:57 +1200
From: Chris Packham <chris.packham@...iedtelesis.co.nz>
To: bp@...en8.de, linux-edac@...r.kernel.org
Cc: mchehab@...nel.org, mpe@...erman.id.au,
linuxppc-dev@...ts.ozlabs.org, linux-kernel@...r.kernel.org,
Chris Packham <chris.packham@...iedtelesis.co.nz>
Subject: EDAC: simplify total memory calculation
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
Powered by blists - more mailing lists