return devm_gpiochip_add_data(dev, gc, priv);
}
-static int sf_gpio_remove(struct platform_device *pdev)
+static void sf_gpio_remove(struct platform_device *pdev)
{
struct sf_gpio_priv *priv = platform_get_drvdata(pdev);
reset_control_assert(priv->rstc);
- return 0;
}
static const struct of_device_id sf_gpio_ids[] = {
static struct platform_driver sf_gpio_driver = {
.probe = sf_gpio_probe,
- .remove = sf_gpio_remove,
+ .remove_new = sf_gpio_remove,
.driver = {
.name = "siflower_gpio",
.owner = THIS_MODULE,
return 0;
}
-static int xpcs_remove(struct platform_device *pdev)
+static void xpcs_remove(struct platform_device *pdev)
{
struct xpcs_priv *priv = platform_get_drvdata(pdev);
clk_bulk_disable_unprepare(XPCS_NUM_CLKS, priv->clks);
- return regmap_clear_bits(priv->ethsys, ETHSYS_RST, BIT(5 + priv->id));
+ regmap_clear_bits(priv->ethsys, ETHSYS_RST, BIT(5 + priv->id));
}
static const struct of_device_id xpcs_match[] = {
static struct platform_driver xpcs_driver = {
.probe = xpcs_probe,
- .remove = xpcs_remove,
+ .remove_new = xpcs_remove,
.driver = {
.name = "sfxpcs",
.of_match_table = xpcs_match,
return 0;
}
-static int sf_pcie_remove(struct platform_device *pdev)
+static void sf_pcie_remove(struct platform_device *pdev)
{
struct sf_pcie *pcie = platform_get_drvdata(pdev);
dw_pcie_host_deinit(&pcie->pci.pp);
- return 0;
-
}
static const struct of_device_id sf_pcie_of_match[] = {
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
},
.probe = sf_pcie_probe,
- .remove = sf_pcie_remove,
+ .remove_new = sf_pcie_remove,
};
module_platform_driver(sf_pcie_driver);