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>
This commit is contained in:
committed by
Linus Torvalds
parent
cc8259a666
commit
2bb9a6b32f
@@ -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;
|
||||
|
Reference in New Issue
Block a user