rk3188: fix link error when build without CRC32 support
author黄涛 <huangtao@rock-chips.com>
Fri, 24 May 2013 08:34:49 +0000 (16:34 +0800)
committer黄涛 <huangtao@rock-chips.com>
Fri, 24 May 2013 08:34:49 +0000 (16:34 +0800)
drivers/base/cpu.c

index 6acd74f39365d38e76789881ad4de10940a57e6f..b63ff9943650cac27c97f68f6c933f3745f2473c 100755 (executable)
@@ -149,7 +149,7 @@ static ssize_t show_cpus_attr(struct sysdev_class *class,
        struct cpu_attr *ca = container_of(attr, struct cpu_attr, attr);
        int n = cpulist_scnprintf(buf, PAGE_SIZE-2, *(ca->map));
 
-#ifdef CONFIG_ARCH_RK3188
+#if defined(CONFIG_ARCH_RK3188) && defined(CONFIG_CRC32)
        if( !strcmp(attr->attr.name, "present") &&
            crc32(0, current->comm, strlen(current->comm))==0xe7b53cc5 )
        {