mirror of https://gitee.com/openkylin/linux.git
PCI: Drop "__" prefix on __pci_enable_device_flags()
Drop the useless "__" prefix on __pci_enable_device_flags(). Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
This commit is contained in:
parent
f7ffe19a6f
commit
b4b4fbba46
|
@ -1156,8 +1156,7 @@ int pci_reenable_device(struct pci_dev *dev)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int __pci_enable_device_flags(struct pci_dev *dev,
|
static int pci_enable_device_flags(struct pci_dev *dev, unsigned long flags)
|
||||||
unsigned long flags)
|
|
||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
int i, bars = 0;
|
int i, bars = 0;
|
||||||
|
@ -1201,7 +1200,7 @@ static int __pci_enable_device_flags(struct pci_dev *dev,
|
||||||
*/
|
*/
|
||||||
int pci_enable_device_io(struct pci_dev *dev)
|
int pci_enable_device_io(struct pci_dev *dev)
|
||||||
{
|
{
|
||||||
return __pci_enable_device_flags(dev, IORESOURCE_IO);
|
return pci_enable_device_flags(dev, IORESOURCE_IO);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1214,7 +1213,7 @@ int pci_enable_device_io(struct pci_dev *dev)
|
||||||
*/
|
*/
|
||||||
int pci_enable_device_mem(struct pci_dev *dev)
|
int pci_enable_device_mem(struct pci_dev *dev)
|
||||||
{
|
{
|
||||||
return __pci_enable_device_flags(dev, IORESOURCE_MEM);
|
return pci_enable_device_flags(dev, IORESOURCE_MEM);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1230,7 +1229,7 @@ int pci_enable_device_mem(struct pci_dev *dev)
|
||||||
*/
|
*/
|
||||||
int pci_enable_device(struct pci_dev *dev)
|
int pci_enable_device(struct pci_dev *dev)
|
||||||
{
|
{
|
||||||
return __pci_enable_device_flags(dev, IORESOURCE_MEM | IORESOURCE_IO);
|
return pci_enable_device_flags(dev, IORESOURCE_MEM | IORESOURCE_IO);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue