EDAC/mc: Split edac_mc_alloc() into smaller functions
authorRobert Richter <rrichter@marvell.com>
Thu, 23 Jan 2020 09:02:49 +0000 (09:02 +0000)
committerBorislav Petkov <bp@suse.de>
Mon, 17 Feb 2020 11:47:50 +0000 (12:47 +0100)
commitaad28c6f6b092b7382ee8dfb455772f7018a4cd1
tree66259d720fedba40f224d0ddb691708ac7e85d6a
parentbea1bfd5b7226ac7c3f93f76be89221f33222a34
EDAC/mc: Split edac_mc_alloc() into smaller functions

edac_mc_alloc() is huge. Factor out code by moving it to the two new
functions edac_mc_alloc_csrows() and edac_mc_alloc_dimms(). Do not
move code yet for better review.

 [ bp: sort local args in reversed fir tree order. ]

Signed-off-by: Robert Richter <rrichter@marvell.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Acked-by: Aristeu Rozanski <aris@redhat.com>
Link: https://lkml.kernel.org/r/20200123090210.26933-2-rrichter@marvell.com
drivers/edac/edac_mc.c