mtd: nand: atmel_nand: remove build warning in atmel_nand_remove()
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Sep 2021 16:51:07 +0000 (18:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Sep 2021 09:42:55 +0000 (11:42 +0200)
commitc4b42f796734c3a0da2e3eda1b5b41c464bb4872
treecee1622366d3668e1d0dea01a1f9947c6b125345
parent7067b09fe587cbd47544a3047a40c64e4d636fff
mtd: nand: atmel_nand: remove build warning in atmel_nand_remove()

In the 4.9.y tree, the following build warning keeps showing up:

drivers/mtd/nand/atmel_nand.c:2337:19: warning: unused variable 'mtd' [-Wunused-variable]

This driver was deleted / restructured in newer kernels so this is a
4.9.y patch only.

Cc: Wenyou Yang <wenyou.yang@atmel.com>
Cc: Josh Wu <rainyfeeling@outlook.com>
Cc: Boris Brezillon <boris.brezillon@free-electrons.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Brian Norris <computersforpeace@gmail.com>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/nand/atmel_nand.c