summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorEzequiel García <ezequiel@vanguardiasur.com.ar>2014-09-20 17:53:12 +0100
committerBrian Norris <computersforpeace@gmail.com>2014-09-22 11:37:51 -0700
commit93af53b8633c4cb474585158512182b21219d743 (patch)
treeed913991563b48f45a45096fe535325be297ff35 /sound
parent2a960cce03d1dbd3dba54e660c479f64674eb5e3 (diff)
downloadlwn-93af53b8633c4cb474585158512182b21219d743.tar.gz
lwn-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 'sound')
0 files changed, 0 insertions, 0 deletions