Commit 7edcf0d3 authored by Linus Torvalds's avatar Linus Torvalds

Merge branch 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull x86 platform updates from Thomas Gleixner:
 "Trivial cleanups and improvements"

* 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  x86/platform/UV: Remove redundant check of p == q
  x86/platform/olpc: Use PTR_ERR_OR_ZERO()
  x86/platform/UV: Mark memblock related init code and data correctly
parents 30de24c7 d79d0248
...@@ -394,10 +394,10 @@ extern int uv_hub_info_version(void) ...@@ -394,10 +394,10 @@ extern int uv_hub_info_version(void)
EXPORT_SYMBOL(uv_hub_info_version); EXPORT_SYMBOL(uv_hub_info_version);
/* Default UV memory block size is 2GB */ /* Default UV memory block size is 2GB */
static unsigned long mem_block_size = (2UL << 30); static unsigned long mem_block_size __initdata = (2UL << 30);
/* Kernel parameter to specify UV mem block size */ /* Kernel parameter to specify UV mem block size */
static int parse_mem_block_size(char *ptr) static int __init parse_mem_block_size(char *ptr)
{ {
unsigned long size = memparse(ptr, NULL); unsigned long size = memparse(ptr, NULL);
......
...@@ -311,10 +311,8 @@ static int __init add_xo1_platform_devices(void) ...@@ -311,10 +311,8 @@ static int __init add_xo1_platform_devices(void)
return PTR_ERR(pdev); return PTR_ERR(pdev);
pdev = platform_device_register_simple("olpc-xo1", -1, NULL, 0); pdev = platform_device_register_simple("olpc-xo1", -1, NULL, 0);
if (IS_ERR(pdev))
return PTR_ERR(pdev);
return 0; return PTR_ERR_OR_ZERO(pdev);
} }
static int olpc_xo1_ec_probe(struct platform_device *pdev) static int olpc_xo1_ec_probe(struct platform_device *pdev)
......
...@@ -1607,8 +1607,6 @@ static int parse_tunables_write(struct bau_control *bcp, char *instr, ...@@ -1607,8 +1607,6 @@ static int parse_tunables_write(struct bau_control *bcp, char *instr,
*tunables[cnt].tunp = val; *tunables[cnt].tunp = val;
continue; continue;
} }
if (q == p)
break;
} }
return 0; return 0;
} }
......
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