/* probe function to be called by SoC specific platform driver probe */
 EXPORT_SYMBOL_GPL(bcm_qspi_probe);
 
-int bcm_qspi_remove(struct platform_device *pdev)
+void bcm_qspi_remove(struct platform_device *pdev)
 {
        struct bcm_qspi *qspi = platform_get_drvdata(pdev);
 
        bcm_qspi_hw_uninit(qspi);
        clk_disable_unprepare(qspi->clk);
        kfree(qspi->dev_ids);
-
-       return 0;
 }
+
 /* function to be called by SoC specific platform driver remove() */
 EXPORT_SYMBOL_GPL(bcm_qspi_remove);
 
 
 /* The common driver functions to be called by the SoC platform driver */
 int bcm_qspi_probe(struct platform_device *pdev,
                   struct bcm_qspi_soc_intc *soc_intc);
-int bcm_qspi_remove(struct platform_device *pdev);
+void bcm_qspi_remove(struct platform_device *pdev);
 
 /* pm_ops used by the SoC platform driver called on PM suspend/resume */
 extern const struct dev_pm_ops bcm_qspi_pm_ops;
 
 
 static int brcmstb_qspi_remove(struct platform_device *pdev)
 {
-       return bcm_qspi_remove(pdev);
+       bcm_qspi_remove(pdev);
+
+       return 0;
 }
 
 static struct platform_driver brcmstb_qspi_driver = {
 
 
 static int bcm_iproc_remove(struct platform_device *pdev)
 {
-       return bcm_qspi_remove(pdev);
+       bcm_qspi_remove(pdev);
+
+       return 0;
 }
 
 static const struct of_device_id bcm_iproc_of_match[] = {