Skip to content

Commit 091ac92

Browse files
andy-shevpateldipen1984-nv
authored andcommitted
hte: tegra194: Switch to LATE_SIMPLE_DEV_PM_OPS()
SET_LATE_SYSTEM_SLEEP_PM_OPS is deprecated, replace it with LATE_SYSTEM_SLEEP_PM_OPS() and use pm_sleep_ptr() for setting the driver's pm routines. We can now remove the __maybe_unused qualifier in the suspend and resume functions. Tested-by: Dipen Patel <dipenp@nvidia.com> Reviewed-by: Dipen Patel <dipenp@nvidia.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20231010151709.4104747-5-andriy.shevchenko@linux.intel.com Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Dipen Patel <dipenp@nvidia.com>
1 parent 0b40f91 commit 091ac92

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

drivers/hte/hte-tegra194.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ static int tegra_hte_probe(struct platform_device *pdev)
810810
return 0;
811811
}
812812

813-
static int __maybe_unused tegra_hte_resume_early(struct device *dev)
813+
static int tegra_hte_resume_early(struct device *dev)
814814
{
815815
u32 i;
816816
struct tegra_hte_soc *gs = dev_get_drvdata(dev);
@@ -831,7 +831,7 @@ static int __maybe_unused tegra_hte_resume_early(struct device *dev)
831831
return 0;
832832
}
833833

834-
static int __maybe_unused tegra_hte_suspend_late(struct device *dev)
834+
static int tegra_hte_suspend_late(struct device *dev)
835835
{
836836
u32 i;
837837
struct tegra_hte_soc *gs = dev_get_drvdata(dev);
@@ -851,15 +851,14 @@ static int __maybe_unused tegra_hte_suspend_late(struct device *dev)
851851
}
852852

853853
static const struct dev_pm_ops tegra_hte_pm = {
854-
SET_LATE_SYSTEM_SLEEP_PM_OPS(tegra_hte_suspend_late,
855-
tegra_hte_resume_early)
854+
LATE_SYSTEM_SLEEP_PM_OPS(tegra_hte_suspend_late, tegra_hte_resume_early)
856855
};
857856

858857
static struct platform_driver tegra_hte_driver = {
859858
.probe = tegra_hte_probe,
860859
.driver = {
861860
.name = "tegra_hte",
862-
.pm = &tegra_hte_pm,
861+
.pm = pm_sleep_ptr(&tegra_hte_pm),
863862
.of_match_table = tegra_hte_of_match,
864863
},
865864
};

0 commit comments

Comments
 (0)