]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
clk: cs2000: mark resume function as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Mon, 9 Apr 2018 10:54:34 +0000 (12:54 +0200)
committerStephen Boyd <sboyd@kernel.org>
Mon, 16 Apr 2018 16:07:22 +0000 (09:07 -0700)
When power management is disabled, we get a harmless warning:

drivers/clk/clk-cs2000-cp.c:544:12: error: 'cs2000_resume' defined but not used [-Werror=unused-function]

Marking the function as __maybe_unused lets the compiler silently
drop it instead.

Fixes: eade4ccdb087 ("clk: cs2000: set pm_ops in hibernate-compatible way")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-cs2000-cp.c

index c58019750b7e186da9d503b486d2fd6510de749f..a2f8c42e527a2622d18953b8be7f432d8f28754a 100644 (file)
@@ -541,7 +541,7 @@ static int cs2000_probe(struct i2c_client *client,
        return ret;
 }
 
-static int cs2000_resume(struct device *dev)
+static int __maybe_unused cs2000_resume(struct device *dev)
 {
        struct cs2000_priv *priv = dev_get_drvdata(dev);