From patchwork Sat Oct 6 20:09:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Len Brown X-Patchwork-Id: 1559611 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 3C3B63FD56 for ; Sat, 6 Oct 2012 20:17:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757047Ab2JFURp (ORCPT ); Sat, 6 Oct 2012 16:17:45 -0400 Received: from mail-qa0-f46.google.com ([209.85.216.46]:48071 "EHLO mail-qa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757058Ab2JFURm (ORCPT ); Sat, 6 Oct 2012 16:17:42 -0400 Received: by mail-qa0-f46.google.com with SMTP id c26so1239354qad.19 for ; Sat, 06 Oct 2012 13:17:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:in-reply-to:references:mime-version:content-type :content-transfer-encoding:reply-to:organization; bh=dwBXSIU2ZIwPcn6t7RM4OskTAcb9l5kynky3oCe/gto=; b=FlhccXvzfFHZ8bnHMVKh11XUXvP9Abc++Xl+jiMlOF88+aeobNVIY0gnltB7i8Lua7 tnG7R4/b8UQRD5rkblb/5mrOWoQ4m1Lqn1DDlDc7gE+XHBqGZYc1/Sz78/KdXPASXQ7G 9lIwpfBOeblkbBsACShaEqujdr1vtnA13c7GZnnaoN1hSBl0iXx/O0OaV3ckv1MSBA6v 9gwfnRSGPB6lJ1BvnmDZpilp0kxLsg3FiJQh1JyYACAEaX8ofksUTF8MPep3GFq5mcfW NF7SLahSl57YW/NW5Dzcs3lTcmXpzpfRXzfvzUexUamOvpsD9vAr5r4i2fGojTtA/I8x 0Y9g== Received: by 10.224.217.136 with SMTP id hm8mr6191211qab.81.1349554662044; Sat, 06 Oct 2012 13:17:42 -0700 (PDT) Received: from x980.localdomain6 (pool-74-104-146-186.bstnma.fios.verizon.net. [74.104.146.186]) by mx.google.com with ESMTPS id x19sm13470740qeq.12.2012.10.06.13.17.28 (version=SSLv3 cipher=OTHER); Sat, 06 Oct 2012 13:17:35 -0700 (PDT) From: Len Brown To: linux-acpi@vger.kernel.org, linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Mika Westerberg , Len Brown Subject: [PATCH 26/49] hp_accel: convert to module_acpi_driver() Date: Sat, 6 Oct 2012 16:09:47 -0400 Message-Id: <46f6471c2c5ed68694df8f453794d5de664e70af.1349554106.git.len.brown@intel.com> X-Mailer: git-send-email 1.8.0.rc0.18.gf84667d In-Reply-To: <1349554210-29978-1-git-send-email-lenb@kernel.org> References: <1349554210-29978-1-git-send-email-lenb@kernel.org> In-Reply-To: References: MIME-Version: 1.0 Reply-To: Len Brown Organization: Intel Open Source Technology Center Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org From: Mika Westerberg Signed-off-by: Mika Westerberg Reviewed-by: Éric Piel Signed-off-by: Len Brown --- drivers/platform/x86/hp_accel.c | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/drivers/platform/x86/hp_accel.c b/drivers/platform/x86/hp_accel.c index 6b9af98..18d74f2 100644 --- a/drivers/platform/x86/hp_accel.c +++ b/drivers/platform/x86/hp_accel.c @@ -382,31 +382,8 @@ static struct acpi_driver lis3lv02d_driver = { }, .drv.pm = HP_ACCEL_PM, }; - -static int __init lis3lv02d_init_module(void) -{ - int ret; - - if (acpi_disabled) - return -ENODEV; - - ret = acpi_bus_register_driver(&lis3lv02d_driver); - if (ret < 0) - return ret; - - pr_info("driver loaded\n"); - - return 0; -} - -static void __exit lis3lv02d_exit_module(void) -{ - acpi_bus_unregister_driver(&lis3lv02d_driver); -} +module_acpi_driver(lis3lv02d_driver); MODULE_DESCRIPTION("Glue between LIS3LV02Dx and HP ACPI BIOS and support for disk protection LED."); MODULE_AUTHOR("Yan Burman, Eric Piel, Pavel Machek"); MODULE_LICENSE("GPL"); - -module_init(lis3lv02d_init_module); -module_exit(lis3lv02d_exit_module);