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

Alexander Shiyan
2013-12-07T14:55:00Z

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@mail.ru>
> Signed-off-by: Ezequiel Garcia <ezequiel.garcia@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.

---