From patchwork Tue Oct 19 07:13:39 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 264691 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o9J7D7mc011874 for ; Tue, 19 Oct 2010 07:13:45 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933663Ab0JSHNp (ORCPT ); Tue, 19 Oct 2010 03:13:45 -0400 Received: from metis.ext.pengutronix.de ([92.198.50.35]:60786 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933583Ab0JSHNo (ORCPT ); Tue, 19 Oct 2010 03:13:44 -0400 Received: from octopus.hi.pengutronix.de ([2001:6f8:1178:2:215:17ff:fe12:23b0]) by metis.ext.pengutronix.de with esmtp (Exim 4.71) (envelope-from ) id 1P86OF-000314-M9; Tue, 19 Oct 2010 09:13:43 +0200 Received: from ukl by octopus.hi.pengutronix.de with local (Exim 4.69) (envelope-from ) id 1P86OD-0003RD-SN; Tue, 19 Oct 2010 09:13:41 +0200 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: linux-acpi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Greg KH , Shaohua Li , Len Brown Subject: [PATCH RESEND] ACPI dock: move some functions to .init.text Date: Tue, 19 Oct 2010 09:13:39 +0200 Message-Id: <1287472419-13187-1-git-send-email-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1277127073-10485-1-git-send-email-u.kleine-koenig@pengutronix.de> References: <1277127073-10485-1-git-send-email-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:6f8:1178:2:215:17ff:fe12:23b0 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-acpi@vger.kernel.org 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 (demeter1.kernel.org [140.211.167.41]); Tue, 19 Oct 2010 07:13:46 +0000 (UTC) diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c index 3fe29e9..2b16563 100644 --- a/drivers/acpi/dock.c +++ b/drivers/acpi/dock.c @@ -929,7 +929,7 @@ static struct attribute_group dock_attribute_group = { * allocated and initialize a new dock station device. Find all devices * that are on the dock station, and register for dock event notifications. */ -static int dock_add(acpi_handle handle) +static int __init dock_add(acpi_handle handle) { int ret, id; struct dock_station ds, *dock_station; @@ -1023,7 +1023,7 @@ static int dock_remove(struct dock_station *ds) * * This is called by acpi_walk_namespace to look for dock stations. */ -static acpi_status +static __init acpi_status find_dock(acpi_handle handle, u32 lvl, void *context, void **rv) { if (is_dock(handle)) @@ -1032,7 +1032,7 @@ find_dock(acpi_handle handle, u32 lvl, void *context, void **rv) return AE_OK; } -static acpi_status +static __init acpi_status find_bay(acpi_handle handle, u32 lvl, void *context, void **rv) { /* If bay is a dock, it's already handled */