From patchwork Sat Oct 6 20:09:51 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Len Brown X-Patchwork-Id: 1559731 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 21EE3E006E for ; Sat, 6 Oct 2012 20:19:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755574Ab2JFUTG (ORCPT ); Sat, 6 Oct 2012 16:19:06 -0400 Received: from mail-qa0-f46.google.com ([209.85.216.46]:35485 "EHLO mail-qa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751613Ab2JFUTF (ORCPT ); Sat, 6 Oct 2012 16:19:05 -0400 Received: by mail-qa0-f46.google.com with SMTP id c26so1239834qad.19 for ; Sat, 06 Oct 2012 13:19:04 -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=gFkzHH3LZkayzc7gwOF9kigahEO6aNK6N+5x8PkyP9w=; b=JmAGxUpHWv0yHHJBTMtl58smTkrkHjQwu67iRHKAjKd+UXSl3s0omPvgNTxkoUV7F3 wppPzSO2zPwZ8VBNS71a0W8c/XwixBJzOkR2/pEMtbQopsY+RdXeaA7yr/aETPPO6gAF kYtvLQSwx+EJehIVD9LkQWpAnDXHmd0+h+Hp+pYVTXDpdDyofALsLuShDR9T4Uoqb4b3 bTfEGchXgsUgrogdzThY51qoSLkbk7BflLc7ouvF/3zOVUb4vH1a0yO0qq7aGibSjf9f ETXSJJ+erxXCt2QO3LNV4U9Pb9wEvtgeK97YKBiU6jhY5oCXkVj9CzAQxjEOQxy1Q5lc uDyg== Received: by 10.224.190.200 with SMTP id dj8mr23273983qab.73.1349554744912; Sat, 06 Oct 2012 13:19:04 -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.18.41 (version=SSLv3 cipher=OTHER); Sat, 06 Oct 2012 13:18:50 -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 30/49] xo15-ebook: convert to module_acpi_driver() Date: Sat, 6 Oct 2012 16:09:51 -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 Signed-off-by: Len Brown --- drivers/platform/x86/xo15-ebook.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/platform/x86/xo15-ebook.c b/drivers/platform/x86/xo15-ebook.c index 38ba39d..16d340c 100644 --- a/drivers/platform/x86/xo15-ebook.c +++ b/drivers/platform/x86/xo15-ebook.c @@ -170,16 +170,4 @@ static struct acpi_driver xo15_ebook_driver = { }, .drv.pm = &ebook_switch_pm, }; - -static int __init xo15_ebook_init(void) -{ - return acpi_bus_register_driver(&xo15_ebook_driver); -} - -static void __exit xo15_ebook_exit(void) -{ - acpi_bus_unregister_driver(&xo15_ebook_driver); -} - -module_init(xo15_ebook_init); -module_exit(xo15_ebook_exit); +module_acpi_driver(xo15_ebook_driver);