Message ID | 1511950698-9322-1-git-send-email-yamada.masahiro@socionext.com |
---|---|
State | Accepted |
Commit | 1a7e176d27eb54cf75b2c54dfe1a351cc434d1d5 |
Headers | show |
Series | mtd: nand: denali: remove bogus __maybe_unused | expand |
2017-11-29 19:18 GMT+09:00 Masahiro Yamada <yamada.masahiro@socionext.com>: > denali_setup_data_interface() is always used. > > I put __maybe_unused for a temporal use, then forgot to delete it. > > Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> > --- > Applied to u-boot-uniphier.
diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c index b116d3a..7a87adc 100644 --- a/drivers/mtd/nand/denali.c +++ b/drivers/mtd/nand/denali.c @@ -938,7 +938,7 @@ static int denali_erase(struct mtd_info *mtd, int page) return irq_status & INTR__ERASE_COMP ? 0 : NAND_STATUS_FAIL; } -static int __maybe_unused denali_setup_data_interface(struct mtd_info *mtd, int chipnr, +static int denali_setup_data_interface(struct mtd_info *mtd, int chipnr, const struct nand_data_interface *conf) { struct denali_nand_info *denali = mtd_to_denali(mtd);
denali_setup_data_interface() is always used. I put __maybe_unused for a temporal use, then forgot to delete it. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> --- drivers/mtd/nand/denali.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)