ltq-atm: convert driver to .remove_new
Convert driver to .remove_new in preparation for kernel 6.12 support. Link: https://github.com/openwrt/openwrt/pull/18454 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
parent
bd532bd48e
commit
fac3d99732
1 changed files with 2 additions and 4 deletions
|
@ -1865,7 +1865,7 @@ INIT_PRIV_DATA_FAIL:
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ltq_atm_remove(struct platform_device *pdev)
|
static void ltq_atm_remove(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
int port_num;
|
int port_num;
|
||||||
struct ltq_atm_ops *ops = platform_get_drvdata(pdev);
|
struct ltq_atm_ops *ops = platform_get_drvdata(pdev);
|
||||||
|
@ -1885,13 +1885,11 @@ static int ltq_atm_remove(struct platform_device *pdev)
|
||||||
ops->shutdown();
|
ops->shutdown();
|
||||||
|
|
||||||
clear_priv_data();
|
clear_priv_data();
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct platform_driver ltq_atm_driver = {
|
static struct platform_driver ltq_atm_driver = {
|
||||||
.probe = ltq_atm_probe,
|
.probe = ltq_atm_probe,
|
||||||
.remove = ltq_atm_remove,
|
.remove_new = ltq_atm_remove,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "atm",
|
.name = "atm",
|
||||||
.of_match_table = ltq_atm_match,
|
.of_match_table = ltq_atm_match,
|
||||||
|
|
Loading…
Reference in a new issue