Skip to content

Commit c299a2e

Browse files
Uwe Kleine-Königthierryreding
authored andcommitted
soc: tegra: cbb: Drop empty platform remove function
A remove callback just returning 0 is equivalent to no remove callback at all. So drop the useless function. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Reviewed-by: Sumit Gupta <sumitg@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
1 parent a094122 commit c299a2e

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

drivers/soc/tegra/cbb/tegra234-cbb.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,11 +1173,6 @@ static int tegra234_cbb_probe(struct platform_device *pdev)
11731173
return tegra_cbb_register(&cbb->base);
11741174
}
11751175

1176-
static int tegra234_cbb_remove(struct platform_device *pdev)
1177-
{
1178-
return 0;
1179-
}
1180-
11811176
static int __maybe_unused tegra234_cbb_resume_noirq(struct device *dev)
11821177
{
11831178
struct tegra234_cbb *cbb = dev_get_drvdata(dev);
@@ -1195,7 +1190,6 @@ static const struct dev_pm_ops tegra234_cbb_pm = {
11951190

11961191
static struct platform_driver tegra234_cbb_driver = {
11971192
.probe = tegra234_cbb_probe,
1198-
.remove = tegra234_cbb_remove,
11991193
.driver = {
12001194
.name = "tegra234-cbb",
12011195
.of_match_table = tegra234_cbb_dt_ids,

0 commit comments

Comments
 (0)