ltq-ptm: 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
0432866d1f
commit
83286b911e
@ -1566,7 +1566,7 @@ INIT_PRIV_DATA_FAIL:
|
|||||||
* Output:
|
* Output:
|
||||||
* none
|
* none
|
||||||
*/
|
*/
|
||||||
static int ltq_ptm_remove(struct platform_device *pdev)
|
static void ltq_ptm_remove(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
@ -1591,13 +1591,11 @@ static int ltq_ptm_remove(struct platform_device *pdev)
|
|||||||
ifx_ptm_uninit_chip();
|
ifx_ptm_uninit_chip();
|
||||||
|
|
||||||
clear_priv_data();
|
clear_priv_data();
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct platform_driver ltq_ptm_driver = {
|
static struct platform_driver ltq_ptm_driver = {
|
||||||
.probe = ltq_ptm_probe,
|
.probe = ltq_ptm_probe,
|
||||||
.remove = ltq_ptm_remove,
|
.remove_new = ltq_ptm_remove,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "ptm",
|
.name = "ptm",
|
||||||
.of_match_table = ltq_ptm_match,
|
.of_match_table = ltq_ptm_match,
|
||||||
|
@ -1079,7 +1079,7 @@ INIT_PRIV_DATA_FAIL:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ltq_ptm_remove(struct platform_device *pdev)
|
static void ltq_ptm_remove(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
ifx_mei_atm_showtime_enter = NULL;
|
ifx_mei_atm_showtime_enter = NULL;
|
||||||
@ -1103,8 +1103,6 @@ static int ltq_ptm_remove(struct platform_device *pdev)
|
|||||||
ifx_ptm_uninit_chip();
|
ifx_ptm_uninit_chip();
|
||||||
|
|
||||||
clear_priv_data();
|
clear_priv_data();
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef MODULE
|
#ifndef MODULE
|
||||||
@ -1135,7 +1133,7 @@ static int __init queue_gamma_map_setup(char *line)
|
|||||||
#endif
|
#endif
|
||||||
static struct platform_driver ltq_ptm_driver = {
|
static struct platform_driver ltq_ptm_driver = {
|
||||||
.probe = ltq_ptm_probe,
|
.probe = ltq_ptm_probe,
|
||||||
.remove = ltq_ptm_remove,
|
.remove_new = ltq_ptm_remove,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "ptm",
|
.name = "ptm",
|
||||||
.of_match_table = ltq_ptm_match,
|
.of_match_table = ltq_ptm_match,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user