Skip to content

Commit d4469e4

Browse files
Alain Volmatbroonie
authored andcommitted
spi: st: remove __maybe_unused for suspend/resume
Remove useless __maybe_unused statements for suspend and resume functions since this is now used via pm_ptr. Signed-off-by: Alain Volmat <alain.volmat@foss.st.com> Link: https://patch.msgid.link/20260106-spi_st_maybe_unused_removal-v1-1-8f5ca7136e96@foss.st.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 9ace475 commit d4469e4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/spi/spi-st-ssc4.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ static int spi_st_runtime_resume(struct device *dev)
403403
return ret;
404404
}
405405

406-
static int __maybe_unused spi_st_suspend(struct device *dev)
406+
static int spi_st_suspend(struct device *dev)
407407
{
408408
struct spi_controller *host = dev_get_drvdata(dev);
409409
int ret;
@@ -415,7 +415,7 @@ static int __maybe_unused spi_st_suspend(struct device *dev)
415415
return pm_runtime_force_suspend(dev);
416416
}
417417

418-
static int __maybe_unused spi_st_resume(struct device *dev)
418+
static int spi_st_resume(struct device *dev)
419419
{
420420
struct spi_controller *host = dev_get_drvdata(dev);
421421
int ret;

0 commit comments

Comments
 (0)