summaryrefslogtreecommitdiff
path: root/Documentation/doc-guide
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2022-10-27 16:10:27 +0300
committerMiquel Raynal <miquel.raynal@bootlin.com>2022-11-07 19:17:21 +0300
commit991cc42a276f1d9303674a04a351942e47c29a3f (patch)
tree560415e9bd736a97ff2059e2720c5796a93db1fc /Documentation/doc-guide
parenta50ae8c98e5766a4fcb78e76f13cc658b784eac1 (diff)
downloadlinux-991cc42a276f1d9303674a04a351942e47c29a3f.tar.xz
mtd: rawnand: lpc32xx_mlc: Switch to using pm_ptr()
The switch to using the gpiod API removed the last user of lpc32xx_wp_disable() outside #ifdef CONFIG_PM, causing build failures if CONFIG_PM=n: drivers/mtd/nand/raw/lpc32xx_mlc.c:380:13: error: ‘lpc32xx_wp_disable’ defined but not used [-Werror=unused-function] 380 | static void lpc32xx_wp_disable(struct lpc32xx_nand_host *host) | ^~~~~~~~~~~~~~~~~~ Fix this by switching from #ifdef CONFIG_PM to pm_ptr(), increasing compile-coverage as a side-effect. Reported-by: noreply@ellerman.id.au Fixes: 782e32a990d9d702 ("mtd: rawnand: lpc32xx_mlc: switch to using gpiod API") Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20221027131028.3838303-1-geert@linux-m68k.org
Diffstat (limited to 'Documentation/doc-guide')
0 files changed, 0 insertions, 0 deletions