aboutsummaryrefslogtreecommitdiff
path: root/drivers/pnp/base.h
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2008-04-28 16:34:13 -0600
committerLen Brown <len.brown@intel.com>2008-04-29 03:22:23 -0400
commitd948a8daa059cf5b3e7f002e7b92acf00fc70c49 (patch)
treea7fed0c0d5f4b599a6999f58619e2d8df1e68852 /drivers/pnp/base.h
parentaf11cb2d521f9d7e10c565bafe8f2358772baa65 (diff)
PNP: factor pnp_init_resource_table() and pnp_clean_resource_table()
Move the common part of pnp_init_resource_table() and pnp_clean_resource_table() into a new pnp_init_resource(). This reduces a little code duplication and will be useful later to initialize an individual resource. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/pnp/base.h')
-rw-r--r--drivers/pnp/base.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pnp/base.h b/drivers/pnp/base.h
index 0c5cb1d58c6..eb43fc6bff1 100644
--- a/drivers/pnp/base.h
+++ b/drivers/pnp/base.h
@@ -18,3 +18,5 @@ int pnp_check_irq(struct pnp_dev * dev, int idx);
int pnp_check_dma(struct pnp_dev * dev, int idx);
void dbg_pnp_show_resources(struct pnp_dev *dev, char *desc);
+
+void pnp_init_resource(struct resource *res);