return 0;
}
-static int adm6996_gpio_remove(struct platform_device *pdev)
+static void adm6996_gpio_remove(struct platform_device *pdev)
{
struct adm6996_priv *priv = platform_get_drvdata(pdev);
if (priv && (priv->model == ADM6996M || priv->model == ADM6996L))
unregister_switch(&priv->dev);
-
- return 0;
}
static struct platform_driver adm6996_gpio_driver = {
.probe = adm6996_gpio_probe,
- .remove = adm6996_gpio_remove,
+ .remove_new = adm6996_gpio_remove,
.driver = {
.name = "adm6996_gpio",
},
return b53_swconfig_switch_register(dev);
}
-static int b53_mmap_remove(struct platform_device *pdev)
+static void b53_mmap_remove(struct platform_device *pdev)
{
struct b53_device *dev = platform_get_drvdata(pdev);
if (dev)
b53_switch_remove(dev);
-
- return 0;
}
static struct platform_driver b53_mmap_driver = {
.probe = b53_mmap_probe,
- .remove = b53_mmap_remove,
+ .remove_new = b53_mmap_remove,
.driver = {
.name = "b53-switch",
},
return b53_swconfig_switch_register(dev);
}
-static int b53_srab_remove(struct platform_device *pdev)
+static void b53_srab_remove(struct platform_device *pdev)
{
struct b53_device *dev = platform_get_drvdata(pdev);
if (dev)
b53_switch_remove(dev);
-
- return 0;
}
static struct platform_driver b53_srab_driver = {
.probe = b53_srab_probe,
- .remove = b53_srab_remove,
+ .remove_new = b53_srab_remove,
.driver = {
.name = "b53-srab-switch",
},
return err;
}
-static int rtl8366rb_remove(struct platform_device *pdev)
+static void rtl8366rb_remove(struct platform_device *pdev)
{
struct rtl8366_smi *smi = platform_get_drvdata(pdev);
rtl8366_smi_cleanup(smi);
kfree(smi);
}
-
- return 0;
}
#ifdef CONFIG_OF
.of_match_table = of_match_ptr(rtl8366rb_match),
},
.probe = rtl8366rb_probe,
- .remove = rtl8366rb_remove,
+ .remove_new = rtl8366rb_remove,
};
static int __init rtl8366rb_module_init(void)
return err;
}
-static int rtl8366s_remove(struct platform_device *pdev)
+static void rtl8366s_remove(struct platform_device *pdev)
{
struct rtl8366_smi *smi = platform_get_drvdata(pdev);
rtl8366_smi_cleanup(smi);
kfree(smi);
}
-
- return 0;
}
#ifdef CONFIG_OF
#endif
},
.probe = rtl8366s_probe,
- .remove = rtl8366s_remove,
+ .remove_new = rtl8366s_remove,
};
static int __init rtl8366s_module_init(void)
return err;
}
-static int rtl8367_remove(struct platform_device *pdev)
+static void rtl8367_remove(struct platform_device *pdev)
{
struct rtl8366_smi *smi = platform_get_drvdata(pdev);
rtl8366_smi_cleanup(smi);
kfree(smi);
}
-
- return 0;
}
static void rtl8367_shutdown(struct platform_device *pdev)
#endif
},
.probe = rtl8367_probe,
- .remove = rtl8367_remove,
+ .remove_new = rtl8367_remove,
.shutdown = rtl8367_shutdown,
};
return err;
}
-static int rtl8367b_remove(struct platform_device *pdev)
+static void rtl8367b_remove(struct platform_device *pdev)
{
struct rtl8366_smi *smi = platform_get_drvdata(pdev);
rtl8366_smi_cleanup(smi);
kfree(smi);
}
-
- return 0;
}
static void rtl8367b_shutdown(struct platform_device *pdev)
#endif
},
.probe = rtl8367b_probe,
- .remove = rtl8367b_remove,
+ .remove_new = rtl8367b_remove,
.shutdown = rtl8367b_shutdown,
};