Re: [PATCH] mtd: nand: gpio: Remove unneeded CONFIG_OF

Alexander Shiyan shc_work at mail.ru
Sat Dec 7 09:54:32 EST 2013


Hello.

> Since the of_mtd header provides dummy stubs for !CONFIG_OF, it's safe
> to remove the #ifdef CONFIG_OF. Build tested only.
> 
> Cc: Alexander Shiyan <shc_work at mail.ru>
> Signed-off-by: Ezequiel Garcia <ezequiel.garcia at free-electrons.com>
...
> -#ifdef CONFIG_OF
>  static const struct of_device_id gpio_nand_id_table[] = {

You should add "__maybe_unused" attribute here in this case.
This will avoid warning when you build driver without OF.

---


More information about the linux-mtd mailing list