File tree Expand file tree Collapse file tree 3 files changed +7
-10
lines changed
target/linux/siflower/files-6.6/drivers Expand file tree Collapse file tree 3 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -317,12 +317,11 @@ static int sf_gpio_probe(struct platform_device *pdev)
317317 return devm_gpiochip_add_data (dev , gc , priv );
318318}
319319
320- static int sf_gpio_remove (struct platform_device * pdev )
320+ static void sf_gpio_remove (struct platform_device * pdev )
321321{
322322 struct sf_gpio_priv * priv = platform_get_drvdata (pdev );
323323
324324 reset_control_assert (priv -> rstc );
325- return 0 ;
326325}
327326
328327static const struct of_device_id sf_gpio_ids [] = {
@@ -333,7 +332,7 @@ MODULE_DEVICE_TABLE(of, sf_gpio_ids);
333332
334333static struct platform_driver sf_gpio_driver = {
335334 .probe = sf_gpio_probe ,
336- .remove = sf_gpio_remove ,
335+ .remove_new = sf_gpio_remove ,
337336 .driver = {
338337 .name = "siflower_gpio" ,
339338 .owner = THIS_MODULE ,
Original file line number Diff line number Diff line change @@ -592,12 +592,12 @@ static int xpcs_probe(struct platform_device *pdev)
592592 return 0 ;
593593}
594594
595- static int xpcs_remove (struct platform_device * pdev )
595+ static void xpcs_remove (struct platform_device * pdev )
596596{
597597 struct xpcs_priv * priv = platform_get_drvdata (pdev );
598598
599599 clk_bulk_disable_unprepare (XPCS_NUM_CLKS , priv -> clks );
600- return regmap_clear_bits (priv -> ethsys , ETHSYS_RST , BIT (5 + priv -> id ));
600+ regmap_clear_bits (priv -> ethsys , ETHSYS_RST , BIT (5 + priv -> id ));
601601}
602602
603603static const struct of_device_id xpcs_match [] = {
@@ -608,7 +608,7 @@ MODULE_DEVICE_TABLE(of, xpcs_match);
608608
609609static struct platform_driver xpcs_driver = {
610610 .probe = xpcs_probe ,
611- .remove = xpcs_remove ,
611+ .remove_new = xpcs_remove ,
612612 .driver = {
613613 .name = "sfxpcs" ,
614614 .of_match_table = xpcs_match ,
Original file line number Diff line number Diff line change @@ -332,13 +332,11 @@ static int sf_pcie_probe(struct platform_device *pdev)
332332 return 0 ;
333333}
334334
335- static int sf_pcie_remove (struct platform_device * pdev )
335+ static void sf_pcie_remove (struct platform_device * pdev )
336336{
337337 struct sf_pcie * pcie = platform_get_drvdata (pdev );
338338
339339 dw_pcie_host_deinit (& pcie -> pci .pp );
340- return 0 ;
341-
342340}
343341
344342static const struct of_device_id sf_pcie_of_match [] = {
@@ -353,7 +351,7 @@ static struct platform_driver sf_pcie_driver = {
353351 .probe_type = PROBE_PREFER_ASYNCHRONOUS ,
354352 },
355353 .probe = sf_pcie_probe ,
356- .remove = sf_pcie_remove ,
354+ .remove_new = sf_pcie_remove ,
357355};
358356
359357module_platform_driver (sf_pcie_driver );
You can’t perform that action at this time.
0 commit comments