projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4ce6ec
)
ppc4xx_edac: Fix build error caused by wrong member access
author
Pranith Kumar
<
[email protected]
>
Tue, 19 Aug 2014 21:10:46 +0000
(17:10 -0400)
committer
Borislav Petkov
<
[email protected]
>
Mon, 15 Sep 2014 12:20:56 +0000
(14:20 +0200)
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]
>
drivers/edac/ppc4xx_edac.c
patch
|
blob
|
history
diff --git
a/drivers/edac/ppc4xx_edac.c
b/drivers/edac/ppc4xx_edac.c
index ef6b7e08f4856817163ef6dbf9d14aee90c65b9a..0f04d5ead521bd8097896783a6da532da9cfa60a 100644
(file)
--- a/
drivers/edac/ppc4xx_edac.c
+++ b/
drivers/edac/ppc4xx_edac.c
@@
-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;