Message ID | 1379847947-32366-1-git-send-email-hanjun.guo@linaro.org |
---|---|
State | New |
Headers | show |
On Sun, 2013-09-22 at 11:05 +0000, Hanjun Guo wrote: > 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> Acked-by: Toshi Kani <toshi.kani@hp.com> -Toshi > --- > drivers/staging/quickstart/quickstart.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/drivers/staging/quickstart/quickstart.c b/drivers/staging/quickstart/quickstart.c > index 4247d60..9f6ebdb 100644 > --- a/drivers/staging/quickstart/quickstart.c > +++ b/drivers/staging/quickstart/quickstart.c > @@ -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)
diff --git a/drivers/staging/quickstart/quickstart.c b/drivers/staging/quickstart/quickstart.c index 4247d60..9f6ebdb 100644 --- a/drivers/staging/quickstart/quickstart.c +++ b/drivers/staging/quickstart/quickstart.c @@ -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)
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> --- drivers/staging/quickstart/quickstart.c | 4 ---- 1 file changed, 4 deletions(-)