mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
ppc4xx_edac: Fix build error caused by wrong member access
Fix the following error drivers/edac/ppc4xx_edac.c:977:45: error: request for member 'dimm' in something not a structure or union by changing member access to pointer dereference. Signed-off-by: Pranith Kumar <[email protected]> Link: http://lkml.kernel.org/r/[email protected] CC: Andrew Morton <[email protected]> Signed-off-by: Borislav Petkov <[email protected]>
This commit is contained in:
parent
f4ce6eca71
commit
2d34056d27
1 changed files with 1 additions and 1 deletions
|
|
@ -974,7 +974,7 @@ static int ppc4xx_edac_init_csrows(struct mem_ctl_info *mci, u32 mcopt1)
|
|||
* page size (PAGE_SIZE) or the memory width (2 or 4).
|
||||
*/
|
||||
for (j = 0; j < csi->nr_channels; j++) {
|
||||
struct dimm_info *dimm = csi->channels[j].dimm;
|
||||
struct dimm_info *dimm = csi->channels[j]->dimm;
|
||||
|
||||
dimm->nr_pages = nr_pages / csi->nr_channels;
|
||||
dimm->grain = 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue