mirror of
https://github.com/torvalds/linux.git
synced 2024-12-31 23:31:29 +00:00
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
This commit is contained in:
commit
7edcf0d314
@ -394,10 +394,10 @@ extern int uv_hub_info_version(void)
|
||||
EXPORT_SYMBOL(uv_hub_info_version);
|
||||
|
||||
/* 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 */
|
||||
static int parse_mem_block_size(char *ptr)
|
||||
static int __init parse_mem_block_size(char *ptr)
|
||||
{
|
||||
unsigned long size = memparse(ptr, NULL);
|
||||
|
||||
|
@ -311,10 +311,8 @@ static int __init add_xo1_platform_devices(void)
|
||||
return PTR_ERR(pdev);
|
||||
|
||||
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)
|
||||
|
@ -1607,8 +1607,6 @@ static int parse_tunables_write(struct bau_control *bcp, char *instr,
|
||||
*tunables[cnt].tunp = val;
|
||||
continue;
|
||||
}
|
||||
if (q == p)
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user