提交 05b6c231 编写于 作者: A Arnd Bergmann 提交者: Boris Brezillon

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: NArnd Bergmann <arnd@arndb.de>
Signed-off-by: NBoris Brezillon <boris.brezillon@free-electrons.com>
上级 79e0348c
...@@ -2510,7 +2510,7 @@ static int atmel_nand_controller_remove(struct platform_device *pdev) ...@@ -2510,7 +2510,7 @@ static int atmel_nand_controller_remove(struct platform_device *pdev)
return nc->caps->ops->remove(nc); return nc->caps->ops->remove(nc);
} }
static int atmel_nand_controller_resume(struct device *dev) static __maybe_unused int atmel_nand_controller_resume(struct device *dev)
{ {
struct atmel_nand_controller *nc = dev_get_drvdata(dev); struct atmel_nand_controller *nc = dev_get_drvdata(dev);
struct atmel_nand *nand; struct atmel_nand *nand;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册