mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
af11cb2d52
commit
d948a8daa0
2 changed files with 54 additions and 46 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue