diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2008-04-28 16:34:13 -0600 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-04-29 03:22:23 -0400 |
commit | d948a8daa059cf5b3e7f002e7b92acf00fc70c49 (patch) | |
tree | a7fed0c0d5f4b599a6999f58619e2d8df1e68852 /drivers/pnp/base.h | |
parent | af11cb2d521f9d7e10c565bafe8f2358772baa65 (diff) | |
download | kernel_samsung_espresso10-d948a8daa059cf5b3e7f002e7b92acf00fc70c49.zip kernel_samsung_espresso10-d948a8daa059cf5b3e7f002e7b92acf00fc70c49.tar.gz kernel_samsung_espresso10-d948a8daa059cf5b3e7f002e7b92acf00fc70c49.tar.bz2 |
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pnp/base.h b/drivers/pnp/base.h index 0c5cb1d..eb43fc6 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); |