hwmon: struct x86_cpu_id arrays can be __initconst
authorJan Beulich <JBeulich@suse.com>
Mon, 30 Jul 2012 09:33:00 +0000 (11:33 +0200)
committerJean Delvare <khali@endymion.delvare>
Mon, 30 Jul 2012 09:33:00 +0000 (11:33 +0200)
... as being referenced from __init code only.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/coretemp.c
drivers/hwmon/via-cputemp.c

index 637c51c11b44ca774057404b6e5326a4ba1de31d..faa16f80db9cf652bbc75aaa7e5fd0e73b788ca4 100644 (file)
@@ -793,7 +793,7 @@ static struct notifier_block coretemp_cpu_notifier __refdata = {
        .notifier_call = coretemp_cpu_callback,
 };
 
-static const struct x86_cpu_id coretemp_ids[] = {
+static const struct x86_cpu_id __initconst coretemp_ids[] = {
        { X86_VENDOR_INTEL, X86_FAMILY_ANY, X86_MODEL_ANY, X86_FEATURE_DTHERM },
        {}
 };
index 8689664ef03cd86866aae1d868aacc55e10a95d9..ee4ebc198a9448e868f45af079e8f3d5f51968ae 100644 (file)
@@ -309,7 +309,7 @@ static struct notifier_block via_cputemp_cpu_notifier __refdata = {
        .notifier_call = via_cputemp_cpu_callback,
 };
 
-static const struct x86_cpu_id cputemp_ids[] = {
+static const struct x86_cpu_id __initconst cputemp_ids[] = {
        { X86_VENDOR_CENTAUR, 6, 0xa, }, /* C7 A */
        { X86_VENDOR_CENTAUR, 6, 0xd, }, /* C7 D */
        { X86_VENDOR_CENTAUR, 6, 0xf, }, /* Nano */