*
* Initialize the chip select rows associated with the EDAC memory
* controller instance.
- *
- * Return: Unconditionally 0.
*/
-static int init_csrows(struct mem_ctl_info *mci)
+static void init_csrows(struct mem_ctl_info *mci)
{
struct synps_edac_priv *priv = mci->pvt_info;
struct csrow_info *csi;
dimm->dtype = get_dtype(priv->baseaddr);
}
}
-
- return 0;
}
/**
* Perform initialization of the EDAC memory controller instance and
* related driver-private data associated with the memory controller the
* instance is bound to.
- *
- * Return: Always zero.
*/
-static int mc_init(struct mem_ctl_info *mci, struct platform_device *pdev)
+static void mc_init(struct mem_ctl_info *mci, struct platform_device *pdev)
{
- int status;
struct synps_edac_priv *priv;
mci->pdev = &pdev->dev;
mci->edac_check = check_errors;
mci->ctl_page_to_phys = NULL;
- status = init_csrows(mci);
-
- return status;
+ init_csrows(mci);
}
/**
priv = mci->pvt_info;
priv->baseaddr = baseaddr;
- rc = mc_init(mci, pdev);
- if (rc) {
- edac_printk(KERN_ERR, EDAC_MC,
- "Failed to initialize instance\n");
- goto free_edac_mc;
- }
+ mc_init(mci, pdev);
rc = edac_mc_add_mc(mci);
if (rc) {