edac: move nr_pages to dimm struct
[linux-2.6-block.git] / drivers / edac / i82443bxgx_edac.c
index 0b98dd3408b9974cd738c4ed634cc1fce0f74c1a..02b252acd999ee136e19f69cb6cc64e42122ad8e 100644 (file)
@@ -220,7 +220,7 @@ static void i82443bxgx_init_csrows(struct mem_ctl_info *mci,
                row_base = row_high_limit_last;
                csrow->first_page = row_base >> PAGE_SHIFT;
                csrow->last_page = (row_high_limit >> PAGE_SHIFT) - 1;
-               csrow->nr_pages = csrow->last_page - csrow->first_page + 1;
+               dimm->nr_pages = csrow->last_page - csrow->first_page + 1;
                /* EAP reports in 4kilobyte granularity [61] */
                dimm->grain = 1 << 12;
                dimm->mtype = mtype;