return ret;
}
-static int mtk_hsdma_remove(struct platform_device *pdev)
+static void mtk_hsdma_remove(struct platform_device *pdev)
{
struct mtk_hsdam_engine *hsdma = platform_get_drvdata(pdev);
of_dma_controller_free(pdev->dev.of_node);
dma_async_device_unregister(&hsdma->ddev);
-
- return 0;
}
static struct platform_driver mtk_hsdma_driver = {
.probe = mtk_hsdma_probe,
- .remove = mtk_hsdma_remove,
+ .remove_new = mtk_hsdma_remove,
.driver = {
.name = KBUILD_MODNAME,
.of_match_table = mtk_hsdma_of_match,
return ret;
}
-static int gdma_dma_remove(struct platform_device *pdev)
+static void gdma_dma_remove(struct platform_device *pdev)
{
struct gdma_dma_dev *dma_dev = platform_get_drvdata(pdev);
tasklet_kill(&dma_dev->task);
of_dma_controller_free(pdev->dev.of_node);
dma_async_device_unregister(&dma_dev->ddev);
-
- return 0;
}
static struct platform_driver gdma_dma_driver = {
.probe = gdma_dma_probe,
- .remove = gdma_dma_remove,
+ .remove_new = gdma_dma_remove,
.driver = {
.name = "gdma-rt2880",
.of_match_table = gdma_of_match_table,
}
/* 4 device share one driver, using "drvdata" to show difference */
-static int msdc_drv_remove(struct platform_device *pdev)
+static void msdc_drv_remove(struct platform_device *pdev)
{
struct mmc_host *mmc;
struct msdc_host *host;
host->dma.bd, host->dma.bd_addr);
mmc_free_host(host->mmc);
-
- return 0;
}
/* Fix me: Power Flow */
static struct platform_driver mt_msdc_driver = {
.probe = msdc_drv_probe,
- .remove = msdc_drv_remove,
+ .remove_new = msdc_drv_remove,
#ifdef CONFIG_PM
.suspend = msdc_drv_suspend,
.resume = msdc_drv_resume,
return 0;
}
-static int mt7621_nfc_remove(struct platform_device *pdev)
+static void mt7621_nfc_remove(struct platform_device *pdev)
{
struct mt7621_nfc *nfc = platform_get_drvdata(pdev);
struct nand_chip *nand = &nfc->nand;
mtk_bmt_detach(mtd);
mtd_device_unregister(mtd);
nand_cleanup(nand);
-
- return 0;
}
static const struct of_device_id mt7621_nfc_id_table[] = {
static struct platform_driver mt7621_nfc_driver = {
.probe = mt7621_nfc_probe,
- .remove = mt7621_nfc_remove,
+ .remove_new = mt7621_nfc_remove,
.driver = {
.name = MT7621_NFC_NAME,
.of_match_table = mt7621_nfc_id_table,
return 0;
}
-static int esw_remove(struct platform_device *pdev)
+static void esw_remove(struct platform_device *pdev)
{
struct rt305x_esw *esw = platform_get_drvdata(pdev);
esw_w32(esw, ~0, RT305X_ESW_REG_IMR);
platform_set_drvdata(pdev, NULL);
}
-
- return 0;
}
static const struct of_device_id ralink_esw_match[] = {
static struct platform_driver esw_driver = {
.probe = esw_probe,
- .remove = esw_remove,
+ .remove_new = esw_remove,
.driver = {
.name = "rt3050-esw",
.of_match_table = ralink_esw_match,
return 0;
}
-static int mt7620_gsw_remove(struct platform_device *pdev)
+static void mt7620_gsw_remove(struct platform_device *pdev)
{
platform_set_drvdata(pdev, NULL);
-
- return 0;
}
static struct platform_driver gsw_driver = {
.probe = mt7620_gsw_probe,
- .remove = mt7620_gsw_remove,
+ .remove_new = mt7620_gsw_remove,
.driver = {
.name = "mt7620-gsw",
.of_match_table = mediatek_gsw_match,
return 0;
}
-static int fe_remove(struct platform_device *pdev)
+static void fe_remove(struct platform_device *pdev)
{
struct net_device *dev = platform_get_drvdata(pdev);
struct fe_priv *priv = netdev_priv(dev);
cancel_work_sync(&priv->pending_work);
platform_set_drvdata(pdev, NULL);
-
- return 0;
}
static struct platform_driver fe_driver = {
.probe = fe_probe,
- .remove = fe_remove,
+ .remove_new = fe_remove,
.driver = {
.name = "mtk_soc_eth",
.of_match_table = of_fe_match,