Skip to content

Commit

Permalink
ppc4xx_edac: Fix build error caused by wrong member access
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pranith Kumar authored and Borislav Petkov committed Sep 15, 2014
1 parent f4ce6ec commit 2d34056
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/edac/ppc4xx_edac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2d34056

Please sign in to comment.