From patchwork Thu Jun 10 05:42:49 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liang Li X-Patchwork-Id: 105298 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o5A5iWNb026385 for ; Thu, 10 Jun 2010 05:44:32 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751537Ab0FJFob (ORCPT ); Thu, 10 Jun 2010 01:44:31 -0400 Received: from mail.windriver.com ([147.11.1.11]:58453 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751383Ab0FJFob (ORCPT ); Thu, 10 Jun 2010 01:44:31 -0400 Received: from ALA-MAIL03.corp.ad.wrs.com (ala-mail03 [147.11.57.144]) by mail.windriver.com (8.14.3/8.14.3) with ESMTP id o5A5h8oA017485; Wed, 9 Jun 2010 22:43:08 -0700 (PDT) Received: from ala-mail06.corp.ad.wrs.com ([147.11.57.147]) by ALA-MAIL03.corp.ad.wrs.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 9 Jun 2010 22:43:03 -0700 Received: from localhost.localdomain ([128.224.162.221]) by ala-mail06.corp.ad.wrs.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 9 Jun 2010 22:43:03 -0700 From: Liang Li To: lenb@kernel.org Cc: linux-acpi@vger.kernel.org Subject: [V2 PATCH] ACPI: fix unbalanced code block Date: Thu, 10 Jun 2010 13:42:49 +0800 Message-Id: <1276148569-27172-1-git-send-email-liang.li@windriver.com> X-Mailer: git-send-email 1.6.6 X-OriginalArrivalTime: 10 Jun 2010 05:43:04.0048 (UTC) FILETIME=[CB927700:01CB085F] Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 10 Jun 2010 05:44:32 +0000 (UTC) diff --git a/drivers/acpi/fan.c b/drivers/acpi/fan.c index acf2ab2..8a3b840 100644 --- a/drivers/acpi/fan.c +++ b/drivers/acpi/fan.c @@ -347,7 +347,6 @@ static int __init acpi_fan_init(void) { int result = 0; - #ifdef CONFIG_ACPI_PROCFS acpi_fan_dir = proc_mkdir(ACPI_FAN_CLASS, acpi_root_dir); if (!acpi_fan_dir) @@ -356,7 +355,9 @@ static int __init acpi_fan_init(void) result = acpi_bus_register_driver(&acpi_fan_driver); if (result < 0) { +#ifdef CONFIG_ACPI_PROCFS remove_proc_entry(ACPI_FAN_CLASS, acpi_root_dir); +#endif return -ENODEV; }