]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mtd: s3c2410: Fix compiler warnings
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 21 Aug 2012 08:54:10 +0000 (14:24 +0530)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Sat, 25 Aug 2012 11:50:19 +0000 (14:50 +0300)
commit2838e2bfef21f1fa0833509420c36ed5f09f4edc
tree33dd2da51ab1a30b94b37399d4063938a5f8797d
parentea5bb4f387d41a97c45276fc1aa70e0cb14807f6
mtd: s3c2410: Fix compiler warnings

Fixes the following warnings:
‘s3c2410_nand_correct_data’ defined but not used [-Wunused-function]
‘s3c2410_nand_enable_hwecc’ defined but not used [-Wunused-function]
‘s3c2412_nand_enable_hwecc’ defined but not used [-Wunused-function]
‘s3c2440_nand_enable_hwecc’ defined but not used [-Wunused-function]
‘s3c2410_nand_calculate_ecc’ defined but not used [-Wunused-function]
‘s3c2412_nand_calculate_ecc’ defined but not used [-Wunused-function]
‘s3c2440_nand_calculate_ecc’ defined but not used [-Wunused-function]

The above functions are called only when CONFIG_MTD_NAND_S3C2410_HWECC
is defined. Thus making them conditional.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/nand/s3c2410.c