aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/apic/x2apic_uv_x.c4
-rw-r--r--arch/x86/platform/olpc/olpc.c4
-rw-r--r--arch/x86/platform/uv/tlb_uv.c2
3 files changed, 3 insertions, 7 deletions
diff --git a/arch/x86/kernel/apic/x2apic_uv_x.c b/arch/x86/kernel/apic/x2apic_uv_x.c
index d492752f79e1..391f358ebb4c 100644
--- a/arch/x86/kernel/apic/x2apic_uv_x.c
+++ b/arch/x86/kernel/apic/x2apic_uv_x.c
@@ -394,10 +394,10 @@ extern int uv_hub_info_version(void)
394EXPORT_SYMBOL(uv_hub_info_version); 394EXPORT_SYMBOL(uv_hub_info_version);
395 395
396/* Default UV memory block size is 2GB */ 396/* Default UV memory block size is 2GB */
397static unsigned long mem_block_size = (2UL << 30); 397static unsigned long mem_block_size __initdata = (2UL << 30);
398 398
399/* Kernel parameter to specify UV mem block size */ 399/* Kernel parameter to specify UV mem block size */
400static int parse_mem_block_size(char *ptr) 400static int __init parse_mem_block_size(char *ptr)
401{ 401{
402 unsigned long size = memparse(ptr, NULL); 402 unsigned long size = memparse(ptr, NULL);
403 403
diff --git a/arch/x86/platform/olpc/olpc.c b/arch/x86/platform/olpc/olpc.c
index 7c3077e58fa0..f0e920fb98ad 100644
--- a/arch/x86/platform/olpc/olpc.c
+++ b/arch/x86/platform/olpc/olpc.c
@@ -311,10 +311,8 @@ static int __init add_xo1_platform_devices(void)
311 return PTR_ERR(pdev); 311 return PTR_ERR(pdev);
312 312
313 pdev = platform_device_register_simple("olpc-xo1", -1, NULL, 0); 313 pdev = platform_device_register_simple("olpc-xo1", -1, NULL, 0);
314 if (IS_ERR(pdev))
315 return PTR_ERR(pdev);
316 314
317 return 0; 315 return PTR_ERR_OR_ZERO(pdev);
318} 316}
319 317
320static int olpc_xo1_ec_probe(struct platform_device *pdev) 318static int olpc_xo1_ec_probe(struct platform_device *pdev)
diff --git a/arch/x86/platform/uv/tlb_uv.c b/arch/x86/platform/uv/tlb_uv.c
index ca446da48fd2..e26dfad507c8 100644
--- a/arch/x86/platform/uv/tlb_uv.c
+++ b/arch/x86/platform/uv/tlb_uv.c
@@ -1607,8 +1607,6 @@ static int parse_tunables_write(struct bau_control *bcp, char *instr,
1607 *tunables[cnt].tunp = val; 1607 *tunables[cnt].tunp = val;
1608 continue; 1608 continue;
1609 } 1609 }
1610 if (q == p)
1611 break;
1612 } 1610 }
1613 return 0; 1611 return 0;
1614} 1612}