summaryrefslogtreecommitdiffstats
path: root/drivers/pnp/pnpbios/core.c
diff options
context:
space:
mode:
authorThomas Renninger2008-02-06 10:40:03 +0100
committerLinus Torvalds2008-02-06 19:41:19 +0100
commit2bb9a6b32f98873adf89a0de04c898681a2c5b8e (patch)
tree1205b9a0873e55db0f8fdff59943f2f9f3782647 /drivers/pnp/pnpbios/core.c
parentsimplify pnp_activate_dev() and pnp_disable_dev() return values (diff)
downloadkernel-qcow2-linux-2bb9a6b32f98873adf89a0de04c898681a2c5b8e.tar.gz
kernel-qcow2-linux-2bb9a6b32f98873adf89a0de04c898681a2c5b8e.tar.xz
kernel-qcow2-linux-2bb9a6b32f98873adf89a0de04c898681a2c5b8e.zip
pnp: declare PNP option parsing functions as __init
There are three kind of parse functions provided by PNP acpi/bios: - get current resources - set resources - get possible resources The first two may be needed later at runtime. The possible resource settings should never change dynamically. And even if this would make any sense (I doubt it), the current implementation only parses possible resource settings at early init time: -> declare all the option parsing __init [akpm@linux-foundation.org: coding-style fixes] Signed-off-by: Thomas Renninger <trenn@suse.de> Acked-By: Rene Herman <rene.herman@gmail.com> Cc: Bjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/pnp/pnpbios/core.c')
-rw-r--r--drivers/pnp/pnpbios/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pnp/pnpbios/core.c b/drivers/pnp/pnpbios/core.c
index e33e03f71084..f7e67197a568 100644
--- a/drivers/pnp/pnpbios/core.c
+++ b/drivers/pnp/pnpbios/core.c
@@ -315,7 +315,7 @@ struct pnp_protocol pnpbios_protocol = {
.disable = pnpbios_disable_resources,
};
-static int insert_device(struct pnp_bios_node *node)
+static int __init insert_device(struct pnp_bios_node *node)
{
struct list_head *pos;
struct pnp_dev *dev;