arm64: cpuinfo: Fix build error without AMLOGIC_CPU_INFO 61/293661/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 1 Jun 2023 02:05:27 +0000 (11:05 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 1 Jun 2023 02:05:30 +0000 (11:05 +0900)
Fix build error without CONFIG_AMLOGIC_CPU_INFO.

Change-Id: Ie1727b8052b588166cac946e7534449829914123
Fixes: cf5cd5b660e6 ("add device model to /proc/cpuinfo")
Fixes: c99869fc131c ("ODROID-COMMON: arch/arm64: Add device information to /proc/cpuinfo")
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
arch/arm64/kernel/cpuinfo.c

index ae5a7b2..b0dbf73 100644 (file)
@@ -203,12 +203,14 @@ static int c_show(struct seq_file *m, void *v)
        seq_puts(m, "\n");
 #endif
 #endif
+#ifdef CONFIG_AMLOGIC_CPU_INFO
 #ifdef CONFIG_ARCH_MESON64_ODROID_COMMON
        seq_printf(m, "Hardware\t: %s\n", machine_name);
        seq_printf(m, "Revision\t: %04x\n\n", system_rev);
 #else
        seq_printf(m, "Hardware\t: %s\n", machine_model);
 #endif
+#endif
        return 0;
 }