ARM: samsung: select CRC32 for SAMSUNG_PM_CHECK
authorArnd Bergmann <arnd@arndb.de>
Tue, 18 Mar 2014 09:02:26 +0000 (10:02 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 21 Mar 2014 17:26:23 +0000 (18:26 +0100)
The Samsung pm_check code uses the crc32 library code, which can
be built as a loadable module, in which case we get a link error
building the kernel.

A better solution is to use 'select CRC32', which is what all
other users of this code do, as it ensures it is always built-in.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Cc: Tomasz Figa <tomasz.figa@gmail.com>
Cc: Ben Dooks <ben-linux@fluff.org>
arch/arm/plat-samsung/Kconfig

index 26ff15c..b57e922 100644 (file)
@@ -444,7 +444,8 @@ config S3C_PM_DEBUG_LED_SMDK
 
 config SAMSUNG_PM_CHECK
        bool "S3C2410 PM Suspend Memory CRC"
-       depends on PM && CRC32
+       depends on PM
+       select CRC32
        help
          Enable the PM code's memory area checksum over sleep. This option
          will generate CRCs of all blocks of memory, and store them before