[PATCH v3 2/3] nand: omap2: Remove horrible ifdefs to fix module probe

Roger Quadros rogerq at ti.com
Tue Sep 16 01:43:59 PDT 2014


On 09/11/2014 06:02 PM, Ezequiel Garcia wrote:
> The current code abuses ifdefs to determine if the selected ECC scheme
> is supported by the running kernel. As a result the code is hard to read,
> and it also fails to load as a module.
> 
> This commit removes all the ifdefs and instead introduces a function
> omap2_nand_ecc_check() to check if the ECC is supported by using
> IS_ENABLED(CONFIG_xxx).
> 
> Since IS_ENABLED() is true when a config is =y or =m, this change fixes the
> module so it can be loaded with no issues.
> 
> Signed-off-by: Ezequiel Garcia <ezequiel at vanguardiasur.com.ar>

Acked-by: Roger Quadros <rogerq at ti.com>

cheers,
-roger




More information about the linux-mtd mailing list