Commit a375720f authored by Art Haas's avatar Art Haas Committed by James Simmons

[PATCH] C99 designated initializers for arch/i386

parent 8a30e3c0
...@@ -188,15 +188,15 @@ static unsigned int amd_size_cache(struct cpuinfo_x86 * c, unsigned int size) ...@@ -188,15 +188,15 @@ static unsigned int amd_size_cache(struct cpuinfo_x86 * c, unsigned int size)
static struct cpu_dev amd_cpu_dev __initdata = { static struct cpu_dev amd_cpu_dev __initdata = {
.c_vendor = "AMD", .c_vendor = "AMD",
.c_ident = { "AuthenticAMD" }, .c_ident = { "AuthenticAMD" },
c_models: { .c_models = {
{ X86_VENDOR_AMD, 4, { .vendor = X86_VENDOR_AMD, .family = 4, .model_names =
{ {
[3] "486 DX/2", [3] = "486 DX/2",
[7] "486 DX/2-WB", [7] = "486 DX/2-WB",
[8] "486 DX/4", [8] = "486 DX/4",
[9] "486 DX/4-WB", [9] = "486 DX/4-WB",
[14] "Am5x86-WT", [14] = "Am5x86-WT",
[15] "Am5x86-WB" [15] = "Am5x86-WB"
} }
}, },
}, },
......
...@@ -392,52 +392,52 @@ static unsigned int intel_size_cache(struct cpuinfo_x86 * c, unsigned int size) ...@@ -392,52 +392,52 @@ static unsigned int intel_size_cache(struct cpuinfo_x86 * c, unsigned int size)
static struct cpu_dev intel_cpu_dev __initdata = { static struct cpu_dev intel_cpu_dev __initdata = {
.c_vendor = "Intel", .c_vendor = "Intel",
.c_ident = { "GenuineIntel" }, .c_ident = { "GenuineIntel" },
c_models: { .c_models = {
{ X86_VENDOR_INTEL, 4, { .vendor = X86_VENDOR_INTEL, .family = 4, .model_names =
{ {
[0] "486 DX-25/33", [0] = "486 DX-25/33",
[1] "486 DX-50", [1] = "486 DX-50",
[2] "486 SX", [2] = "486 SX",
[3] "486 DX/2", [3] = "486 DX/2",
[4] "486 SL", [4] = "486 SL",
[5] "486 SX/2", [5] = "486 SX/2",
[7] "486 DX/2-WB", [7] = "486 DX/2-WB",
[8] "486 DX/4", [8] = "486 DX/4",
[9] "486 DX/4-WB" [9] = "486 DX/4-WB"
} }
}, },
{ X86_VENDOR_INTEL, 5, { .vendor = X86_VENDOR_INTEL, .family = 5, .model_names =
{ {
[0] "Pentium 60/66 A-step", [0] = "Pentium 60/66 A-step",
[1] "Pentium 60/66", [1] = "Pentium 60/66",
[2] "Pentium 75 - 200", [2] = "Pentium 75 - 200",
[3] "OverDrive PODP5V83", [3] = "OverDrive PODP5V83",
[4] "Pentium MMX", [4] = "Pentium MMX",
[7] "Mobile Pentium 75 - 200", [7] = "Mobile Pentium 75 - 200",
[8] "Mobile Pentium MMX" [8] = "Mobile Pentium MMX"
} }
}, },
{ X86_VENDOR_INTEL, 6, { .vendor = X86_VENDOR_INTEL, .family = 6, .model_names =
{ {
[0] "Pentium Pro A-step", [0] = "Pentium Pro A-step",
[1] "Pentium Pro", [1] = "Pentium Pro",
[3] "Pentium II (Klamath)", [3] = "Pentium II (Klamath)",
[4] "Pentium II (Deschutes)", [4] = "Pentium II (Deschutes)",
[5] "Pentium II (Deschutes)", [5] = "Pentium II (Deschutes)",
[6] "Mobile Pentium II", [6] = "Mobile Pentium II",
[7] "Pentium III (Katmai)", [7] = "Pentium III (Katmai)",
[8] "Pentium III (Coppermine)", [8] = "Pentium III (Coppermine)",
[10] "Pentium III (Cascades)", [10] = "Pentium III (Cascades)",
[11] "Pentium III (Tualatin)", [11] = "Pentium III (Tualatin)",
} }
}, },
{ X86_VENDOR_INTEL, 15, { .vendor = X86_VENDOR_INTEL, .family = 15, .model_names =
{ {
[0] "Pentium 4 (Unknown)", [0] = "Pentium 4 (Unknown)",
[1] "Pentium 4 (Willamette)", [1] = "Pentium 4 (Willamette)",
[2] "Pentium 4 (Northwood)", [2] = "Pentium 4 (Northwood)",
[4] "Pentium 4 (Foster)", [4] = "Pentium 4 (Foster)",
[5] "Pentium 4 (Foster)", [5] = "Pentium 4 (Foster)",
} }
}, },
}, },
......
...@@ -44,8 +44,11 @@ static void nexgen_identify(struct cpuinfo_x86 * c) ...@@ -44,8 +44,11 @@ static void nexgen_identify(struct cpuinfo_x86 * c)
static struct cpu_dev nexgen_cpu_dev __initdata = { static struct cpu_dev nexgen_cpu_dev __initdata = {
.c_vendor = "Nexgen", .c_vendor = "Nexgen",
.c_ident = { "NexGenDriven" }, .c_ident = { "NexGenDriven" },
c_models: { .c_models = {
{ X86_VENDOR_NEXGEN,5, { [1] "Nx586" } }, { .vendor = X86_VENDOR_NEXGEN,
.family = 5,
.model_names = { [1] = "Nx586" }
},
}, },
.c_init = init_nexgen, .c_init = init_nexgen,
.c_identify = nexgen_identify, .c_identify = nexgen_identify,
......
...@@ -31,13 +31,13 @@ static void __init init_rise(struct cpuinfo_x86 *c) ...@@ -31,13 +31,13 @@ static void __init init_rise(struct cpuinfo_x86 *c)
static struct cpu_dev rise_cpu_dev __initdata = { static struct cpu_dev rise_cpu_dev __initdata = {
.c_vendor = "Rise", .c_vendor = "Rise",
.c_ident = { "RiseRiseRise" }, .c_ident = { "RiseRiseRise" },
c_models: { .c_models = {
{ X86_VENDOR_RISE, 5, { .vendor = X86_VENDOR_RISE, .family = 5, .model_names =
{ {
[0] "iDragon", [0] = "iDragon",
[2] "iDragon", [2] = "iDragon",
[8] "iDragon II", [8] = "iDragon II",
[9] "iDragon II" [9] = "iDragon II"
} }
}, },
}, },
......
...@@ -13,11 +13,11 @@ static void __init init_umc(struct cpuinfo_x86 * c) ...@@ -13,11 +13,11 @@ static void __init init_umc(struct cpuinfo_x86 * c)
static struct cpu_dev umc_cpu_dev __initdata = { static struct cpu_dev umc_cpu_dev __initdata = {
.c_vendor = "UMC", .c_vendor = "UMC",
.c_ident = { "UMC UMC UMC" }, .c_ident = { "UMC UMC UMC" },
c_models: { .c_models = {
{ X86_VENDOR_UMC, 4, { .vendor = X86_VENDOR_UMC, .family = 4, .model_names =
{ {
[1] "U5D", [1] = "U5D",
[2] "U5S", [2] = "U5S",
} }
}, },
}, },
......
...@@ -224,7 +224,7 @@ time_cpufreq_notifier(struct notifier_block *nb, unsigned long val, ...@@ -224,7 +224,7 @@ time_cpufreq_notifier(struct notifier_block *nb, unsigned long val,
} }
static struct notifier_block time_cpufreq_notifier_block = { static struct notifier_block time_cpufreq_notifier_block = {
notifier_call: time_cpufreq_notifier .notifier_call = time_cpufreq_notifier
}; };
#endif #endif
......
...@@ -84,8 +84,8 @@ static int pci_conf1_mq_write(struct pci_bus *bus, unsigned int devfn, int where ...@@ -84,8 +84,8 @@ static int pci_conf1_mq_write(struct pci_bus *bus, unsigned int devfn, int where
} }
static struct pci_ops pci_direct_conf1_mq = { static struct pci_ops pci_direct_conf1_mq = {
read: pci_conf1_mq_read, .read = pci_conf1_mq_read,
write: pci_conf1_mq_write .write = pci_conf1_mq_write
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment