diff options
author | Alex Shi <alex.shi@linaro.org> | 2017-02-27 12:13:50 +0800 |
---|---|---|
committer | Alex Shi <alex.shi@linaro.org> | 2017-02-27 12:13:50 +0800 |
commit | 0dbbc74421d25e7d490d7426b38f7942011deb4d (patch) | |
tree | 26a9d5968d5d0cd6c8b6fd8dee5cc3fb199e1e6e /arch | |
parent | e2a316c741e51ce220003d49ea30e25468ca3b0f (diff) | |
parent | 3737a5f7223464efed3b0a9da2b045dae28d3a53 (diff) |
Merge branch 'linux-linaro-lsk-v4.9' into linux-linaro-lsk-v4.9-androidlsk-v4.9-18.05-androidlsk-v4.9-18.03-androidlsk-v4.9-18.02-androidlsk-v4.9-17.11-androidlsk-v4.9-17.09-androidlsk-v4.9-17.08-androidlsk-v4.9-17.06-android
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/platform/goldfish/goldfish.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/arch/x86/platform/goldfish/goldfish.c b/arch/x86/platform/goldfish/goldfish.c index 1693107a518e..0d17c0aafeb1 100644 --- a/arch/x86/platform/goldfish/goldfish.c +++ b/arch/x86/platform/goldfish/goldfish.c @@ -42,10 +42,22 @@ static struct resource goldfish_pdev_bus_resources[] = { } }; +static bool goldfish_enable __initdata; + +static int __init goldfish_setup(char *str) +{ + goldfish_enable = true; + return 0; +} +__setup("goldfish", goldfish_setup); + static int __init goldfish_init(void) { + if (!goldfish_enable) + return -ENODEV; + platform_device_register_simple("goldfish_pdev_bus", -1, - goldfish_pdev_bus_resources, 2); + goldfish_pdev_bus_resources, 2); return 0; } device_initcall(goldfish_init); |