From: Ezequiel GarcĂ­a Date: Sat, 20 Sep 2014 16:53:12 +0000 (+0100) Subject: nand: omap2: Remove horrible ifdefs to fix module probe X-Git-Tag: fixes-against-v3.18-rc2~54^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93af53b8633c4cb474585158512182b21219d743;p=pandora-kernel.git nand: omap2: Remove horrible ifdefs to fix module probe 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. Acked-by: Roger Quadros Signed-off-by: Ezequiel Garcia Signed-off-by: Brian Norris --- Reading git-diff-tree failed