]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
spi: st: remove __maybe_unused for suspend/resume
authorAlain Volmat <alain.volmat@foss.st.com>
Tue, 6 Jan 2026 12:14:17 +0000 (13:14 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 6 Jan 2026 12:23:36 +0000 (12:23 +0000)
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>
drivers/spi/spi-st-ssc4.c

index c07c61dc4938a70ad6b8d08d5a19150473d74d1d..b173ef70d77ebd750b789ac07f228ff1fbb8cb7e 100644 (file)
@@ -403,7 +403,7 @@ static int spi_st_runtime_resume(struct device *dev)
        return ret;
 }
 
-static int __maybe_unused spi_st_suspend(struct device *dev)
+static int spi_st_suspend(struct device *dev)
 {
        struct spi_controller *host = dev_get_drvdata(dev);
        int ret;
@@ -415,7 +415,7 @@ static int __maybe_unused spi_st_suspend(struct device *dev)
        return pm_runtime_force_suspend(dev);
 }
 
-static int __maybe_unused spi_st_resume(struct device *dev)
+static int spi_st_resume(struct device *dev)
 {
        struct spi_controller *host = dev_get_drvdata(dev);
        int ret;