Skip to content

Commit

Permalink
memory: atmel-ebi: mark PM ops as __maybe_unused
Browse files Browse the repository at this point in the history
We get a harmless warning without CONFIG_PM:

drivers/memory/atmel-ebi.c:584:12: error: 'atmel_ebi_resume' defined but not used [-Werror=unused-function]

Marking the function as __maybe_unused does the right thing here
and drops it silently when unused.

Fixes: a483fb10e5ea ("memory: atmel-ebi: Add PM ops")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
  • Loading branch information
Arnd Bergmann authored and Alexandre Belloni committed May 15, 2017
1 parent 2ea659a commit 41b80bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/memory/atmel-ebi.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ static int atmel_ebi_probe(struct platform_device *pdev)
return of_platform_populate(np, NULL, NULL, dev);
}

static int atmel_ebi_resume(struct device *dev)
static __maybe_unused int atmel_ebi_resume(struct device *dev)
{
struct atmel_ebi *ebi = dev_get_drvdata(dev);
struct atmel_ebi_dev *ebid;
Expand Down

0 comments on commit 41b80bb

Please sign in to comment.