]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mtd: nand: atmel: mark resume function __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Wed, 31 May 2017 08:19:26 +0000 (10:19 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Thu, 1 Jun 2017 08:09:35 +0000 (10:09 +0200)
commit05b6c2313e91ac65915bde5e55bc6f194bfe22f3
treeab4dde5e6a00c50916e44e42733f8674ffec97ed
parent79e0348c4e24fd1affdcf055e0269755580e0fcc
mtd: nand: atmel: mark resume function __maybe_unused

The newly added suspend/resume support causes a harmless warning:

drivers/mtd/nand/atmel/nand-controller.c:2513:12: error: 'atmel_nand_controller_resume' defined but not used [-Werror=unused-function]

This shuts up the warning with a __maybe_unused annotation.

Fixes: b107007a7114 ("mtd: nand: atmel: Add PM ops")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/atmel/nand-controller.c