Commit 2d34056d27687180c0bab7dc40957a40d7ce0140

Authored by Pranith Kumar
Committed by Borislav Petkov
1 parent f4ce6eca71

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 <bobby.prani@gmail.com>
Link: http://lkml.kernel.org/r/1408482646-22541-1-git-send-email-bobby.prani@gmail.com
CC: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Borislav Petkov <bp@suse.de>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/edac/ppc4xx_edac.c
... ... @@ -974,7 +974,7 @@
974 974 * page size (PAGE_SIZE) or the memory width (2 or 4).
975 975 */
976 976 for (j = 0; j < csi->nr_channels; j++) {
977   - struct dimm_info *dimm = csi->channels[j].dimm;
  977 + struct dimm_info *dimm = csi->channels[j]->dimm;
978 978  
979 979 dimm->nr_pages = nr_pages / csi->nr_channels;
980 980 dimm->grain = 1;