]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
Staging / quickstart: remove reduplicate if(acpi_disabled) check
authorHanjun Guo <hanjun.guo@linaro.org>
Sun, 22 Sep 2013 11:05:47 +0000 (19:05 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Sep 2013 23:48:45 +0000 (16:48 -0700)
In acpi_bus_register_driver(), there is an if (acpi_disabled) check,
so the if(acpi_disabled) before it is reduplicate, remove it.

Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/quickstart/quickstart.c

index 4247d60c91861929fd17da303eba9653d3bd993d..9f6ebdb23740596f530e9ab5d52194ca3c9c438e 100644 (file)
@@ -390,10 +390,6 @@ static int __init quickstart_init(void)
 {
        int ret;
 
-       /* ACPI Check */
-       if (acpi_disabled)
-               return -ENODEV;
-
        /* ACPI driver register */
        ret = acpi_bus_register_driver(&quickstart_acpi_driver);
        if (ret)