summaryrefslogtreecommitdiffstats
path: root/drivers/macintosh
diff options
context:
space:
mode:
authorEzequiel GarcĂ­a <ezequiel@vanguardiasur.com.ar>2014-09-20 18:53:12 +0200
committerBrian Norris <computersforpeace@gmail.com>2014-09-22 20:37:51 +0200
commit93af53b8633c4cb474585158512182b21219d743 (patch)
treeed913991563b48f45a45096fe535325be297ff35 /drivers/macintosh
parentmtd: nand: add Hynix's H27UCG8T2ATR-BC to nand_ids table (diff)
downloadlinux-93af53b8633c4cb474585158512182b21219d743.tar.xz
linux-93af53b8633c4cb474585158512182b21219d743.zip
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 <rogerq@ti.com> Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/macintosh')
0 files changed, 0 insertions, 0 deletions