diff options
Diffstat (limited to 'drivers/edac/e752x_edac.c')
-rw-r--r-- | drivers/edac/e752x_edac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/edac/e752x_edac.c b/drivers/edac/e752x_edac.c index ae3f80c54198..073f5a06d238 100644 --- a/drivers/edac/e752x_edac.c +++ b/drivers/edac/e752x_edac.c | |||
@@ -958,7 +958,7 @@ static void e752x_check(struct mem_ctl_info *mci) | |||
958 | } | 958 | } |
959 | 959 | ||
960 | /* Program byte/sec bandwidth scrub rate to hardware */ | 960 | /* Program byte/sec bandwidth scrub rate to hardware */ |
961 | static int set_sdram_scrub_rate(struct mem_ctl_info *mci, u32 *new_bw) | 961 | static int set_sdram_scrub_rate(struct mem_ctl_info *mci, u32 new_bw) |
962 | { | 962 | { |
963 | const struct scrubrate *scrubrates; | 963 | const struct scrubrate *scrubrates; |
964 | struct e752x_pvt *pvt = (struct e752x_pvt *) mci->pvt_info; | 964 | struct e752x_pvt *pvt = (struct e752x_pvt *) mci->pvt_info; |
@@ -975,7 +975,7 @@ static int set_sdram_scrub_rate(struct mem_ctl_info *mci, u32 *new_bw) | |||
975 | * desired rate and program the cooresponding register value. | 975 | * desired rate and program the cooresponding register value. |
976 | */ | 976 | */ |
977 | for (i = 0; scrubrates[i].bandwidth != SDRATE_EOT; i++) | 977 | for (i = 0; scrubrates[i].bandwidth != SDRATE_EOT; i++) |
978 | if (scrubrates[i].bandwidth >= *new_bw) | 978 | if (scrubrates[i].bandwidth >= new_bw) |
979 | break; | 979 | break; |
980 | 980 | ||
981 | if (scrubrates[i].bandwidth == SDRATE_EOT) | 981 | if (scrubrates[i].bandwidth == SDRATE_EOT) |