From patchwork Sat Oct 6 20:09:46 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Len Brown X-Patchwork-Id: 1559621 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 8AFB23FD56 for ; Sat, 6 Oct 2012 20:17:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757011Ab2JFURb (ORCPT ); Sat, 6 Oct 2012 16:17:31 -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 S1756975Ab2JFUR3 (ORCPT ); Sat, 6 Oct 2012 16:17:29 -0400 Received: by mail-qa0-f46.google.com with SMTP id c26so1239354qad.19 for ; Sat, 06 Oct 2012 13:17:28 -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:reply-to:organization; bh=ynXUs6z9HRvLynV9QG/oBR/JATka0miL1kigjl9eVYM=; b=ypOgJdyXzNe2aiRaDcgw8hMwCPit59JITPfMiNsRPAmH2HrcemolZMTjfL5tqHbCs3 FvTOYubRvY9y3VGr4C9oaU+CMmj901ebXs/Z0ggsaKBOHoKhwyQSKh4HvLps7FMb+1kK gaAkE355DKrceLsMf7chNXPBniMEFglO+4UmHIXmy4fGBVq6NsH1RSTryVqVh9nhsOD7 fknlivmwqQsPt1NHAyaV4UPnY0GJ94DgDy4Nhbi0YUaI/uI7BQiJvzF4SgqOr/ge1Jr8 D5mjXzXX/Dz8Hdc5X1OXG3BqlRge9RNL6BZt739n3SpP4oL5+nzH3rZKASt4mPq7iqS5 cJ2A== Received: by 10.49.49.167 with SMTP id v7mr32721691qen.65.1349554648789; Sat, 06 Oct 2012 13:17:28 -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.13 (version=SSLv3 cipher=OTHER); Sat, 06 Oct 2012 13:17:21 -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 25/49] Input: atlas_btns - convert to module_acpi_driver() Date: Sat, 6 Oct 2012 16:09:46 -0400 Message-Id: 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: 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 Acked-by: Dmitry Torokhov Signed-off-by: Len Brown --- drivers/input/misc/atlas_btns.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/drivers/input/misc/atlas_btns.c b/drivers/input/misc/atlas_btns.c index 601f737..26f1313 100644 --- a/drivers/input/misc/atlas_btns.c +++ b/drivers/input/misc/atlas_btns.c @@ -151,22 +151,7 @@ static struct acpi_driver atlas_acpi_driver = { .remove = atlas_acpi_button_remove, }, }; - -static int __init atlas_acpi_init(void) -{ - if (acpi_disabled) - return -ENODEV; - - return acpi_bus_register_driver(&atlas_acpi_driver); -} - -static void __exit atlas_acpi_exit(void) -{ - acpi_bus_unregister_driver(&atlas_acpi_driver); -} - -module_init(atlas_acpi_init); -module_exit(atlas_acpi_exit); +module_acpi_driver(atlas_acpi_driver); MODULE_AUTHOR("Jaya Kumar"); MODULE_LICENSE("GPL");