mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
pnp: make the resource type an unsigned long
PnP encodes the resource type directly as its struct resource->flags value which is an unsigned long. Make it so... Signed-off-by: Rene Herman <rene.herman@gmail.com> Cc: "H. Peter Anvin" <hpa@zytor.com> Acked-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Cc: Andi Kleen <andi@firstfloor.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
a63cc18f02
commit
b563cf59c4
4 changed files with 8 additions and 6 deletions
|
@ -22,9 +22,11 @@ struct pnp_dev;
|
|||
* Resource Management
|
||||
*/
|
||||
#ifdef CONFIG_PNP
|
||||
struct resource *pnp_get_resource(struct pnp_dev *, unsigned int, unsigned int);
|
||||
struct resource *pnp_get_resource(struct pnp_dev *dev, unsigned long type,
|
||||
unsigned int num);
|
||||
#else
|
||||
static inline struct resource *pnp_get_resource(struct pnp_dev *dev, unsigned int type, unsigned int num)
|
||||
static inline struct resource *pnp_get_resource(struct pnp_dev *dev,
|
||||
unsigned long type, unsigned int num)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue