Skip to content

Commit 00a166d

Browse files
committed
siflower: switch to .remove_new for downstream driver
Switch to .remove_new for downstream driver that still use the old .remove to reduce patch delta for 6.12 bump. Suggested-by: Zhu Yujie <[email protected]> Signed-off-by: Christian Marangi <[email protected]>
1 parent a2a78c0 commit 00a166d

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

target/linux/siflower/files-6.6/drivers/gpio/gpio-siflower.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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

328327
static const struct of_device_id sf_gpio_ids[] = {
@@ -333,7 +332,7 @@ MODULE_DEVICE_TABLE(of, sf_gpio_ids);
333332

334333
static 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,

target/linux/siflower/files-6.6/drivers/net/ethernet/siflower/sfxpcs.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

603603
static const struct of_device_id xpcs_match[] = {
@@ -608,7 +608,7 @@ MODULE_DEVICE_TABLE(of, xpcs_match);
608608

609609
static 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,

target/linux/siflower/files-6.6/drivers/pci/controller/dwc/pcie-sf21.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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

344342
static 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

359357
module_platform_driver(sf_pcie_driver);

0 commit comments

Comments
 (0)