From patchwork Sun Sep 22 11:05:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 20525 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f71.google.com (mail-qa0-f71.google.com [209.85.216.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C553625E85 for ; Sun, 22 Sep 2013 11:06:25 +0000 (UTC) Received: by mail-qa0-f71.google.com with SMTP id k15sf1408721qaq.2 for ; Sun, 22 Sep 2013 04:06:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=RJvfwbc5+To6tm2ia5yVJ6U5nkQNM++X5dpcUasYQYY=; b=HE4bAQi8xm1xz4Q3TaZUM7x+hYCI6qxKo/vRJHqKIW/1IL25bd+NvfjF7e1wN/QlpN PGaW0gcsNLFwu7Fc95A2N+gsOa1OmP8g9N0lOFBEzBQ2uZTTrMDIr7Xurpvbeq8AFWwX mD2Ix/6P8FFAY95zUY5qC+hJxEGjUfbviVlU1D6BjCL+0MrURn3Woua3QioEMxVGJhka Xv5ezG63BdnbD4WmebMxvzZcslKVkSSq+QHTQskkDAKOtjDEc/TFrGHxko3aoNHZ1xyz xf39IgtOXadzrxaDyOa7IMr8WoaakmygkpajnqsULKPtEgAFL4CJXeiUfCNvvwKgi0Sc zVJA== X-Gm-Message-State: ALoCoQkgxFnsGdRy4UHRwQ/RMdsS7eD626iRO5DEWbrIdG/5V3YGO2lM0RZWO+62lTSR4ev0FRMC X-Received: by 10.224.137.67 with SMTP id v3mr7672817qat.0.1379847985233; Sun, 22 Sep 2013 04:06:25 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.39.163 with SMTP id q3ls873610qek.31.gmail; Sun, 22 Sep 2013 04:06:25 -0700 (PDT) X-Received: by 10.220.13.20 with SMTP id z20mr16254972vcz.0.1379847985093; Sun, 22 Sep 2013 04:06:25 -0700 (PDT) Received: from mail-vb0-f45.google.com (mail-vb0-f45.google.com [209.85.212.45]) by mx.google.com with ESMTPS id tj1si5108461vdc.40.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 22 Sep 2013 04:06:24 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.45 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.45; Received: by mail-vb0-f45.google.com with SMTP id e15so1545051vbg.32 for ; Sun, 22 Sep 2013 04:06:24 -0700 (PDT) X-Received: by 10.220.1.203 with SMTP id 11mr16154100vcg.15.1379847984684; Sun, 22 Sep 2013 04:06:24 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp109021vcz; Sun, 22 Sep 2013 04:06:24 -0700 (PDT) X-Received: by 10.66.216.234 with SMTP id ot10mr2296063pac.122.1379847983724; Sun, 22 Sep 2013 04:06:23 -0700 (PDT) Received: from mail-pb0-f46.google.com (mail-pb0-f46.google.com [209.85.160.46]) by mx.google.com with ESMTPS id u5si17284319pbq.221.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 22 Sep 2013 04:06:23 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.46 is neither permitted nor denied by best guess record for domain of hanjun.guo@linaro.org) client-ip=209.85.160.46; Received: by mail-pb0-f46.google.com with SMTP id rq2so2098352pbb.5 for ; Sun, 22 Sep 2013 04:06:23 -0700 (PDT) X-Received: by 10.69.4.100 with SMTP id cd4mr17856639pbd.120.1379847983124; Sun, 22 Sep 2013 04:06:23 -0700 (PDT) Received: from localhost ([218.17.215.175]) by mx.google.com with ESMTPSA id dk3sm11736321pbc.32.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 22 Sep 2013 04:06:22 -0700 (PDT) From: Hanjun Guo To: Greg Kroah-Hartman Cc: "Rafael J. Wysocki" , Jiang Liu , Toshi Kani , linux-acpi@vger.kernel.org, patches@linaro.org, linaro-kernel@lists.linaro.org, linaro-acpi@lists.linaro.org, linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org, Hanjun Guo Subject: [PATCH] Staging / quickstart: remove reduplicate if(acpi_disabled) check Date: Sun, 22 Sep 2013 19:05:47 +0800 Message-Id: <1379847947-32366-1-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: hanjun.guo@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.45 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 Acked-by: Toshi Kani --- 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)