Merge branch 'pci/hotplug'
- Fix acpiphp reference count leak (Feilong Lin) * pci/hotplug: PCI: acpiphp: Fix whitespace issue PCI: shpchp: Remove unused shpc_writeb() PCI: cpqphp: Use DEFINE_SPINLOCK() for int15_lock ACPI / hotplug / PCI: Fix reference count leak in enable_slot()
This commit is contained in:
Коммит
31311031d7
|
@ -148,8 +148,7 @@ static inline struct acpiphp_root_context *to_acpiphp_root_context(struct acpi_h
|
|||
* ACPI has no generic method of setting/getting attention status
|
||||
* this allows for device specific driver registration
|
||||
*/
|
||||
struct acpiphp_attention_info
|
||||
{
|
||||
struct acpiphp_attention_info {
|
||||
int (*set_attn)(struct hotplug_slot *slot, u8 status);
|
||||
int (*get_attn)(struct hotplug_slot *slot, u8 *status);
|
||||
struct module *owner;
|
||||
|
|
|
@ -533,6 +533,7 @@ static void enable_slot(struct acpiphp_slot *slot, bool bridge)
|
|||
slot->flags &= ~SLOT_ENABLED;
|
||||
continue;
|
||||
}
|
||||
pci_dev_put(dev);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ static u8 evbuffer[1024];
|
|||
static void __iomem *compaq_int15_entry_point;
|
||||
|
||||
/* lock for ordering int15_bios_call() */
|
||||
static spinlock_t int15_lock;
|
||||
static DEFINE_SPINLOCK(int15_lock);
|
||||
|
||||
|
||||
/* This is a series of function that deals with
|
||||
|
@ -415,9 +415,6 @@ void compaq_nvram_init(void __iomem *rom_start)
|
|||
compaq_int15_entry_point = (rom_start + ROM_INT15_PHY_ADDR - ROM_PHY_ADDR);
|
||||
|
||||
dbg("int15 entry = %p\n", compaq_int15_entry_point);
|
||||
|
||||
/* initialize our int15 lock */
|
||||
spin_lock_init(&int15_lock);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -174,11 +174,6 @@ static inline u8 shpc_readb(struct controller *ctrl, int reg)
|
|||
return readb(ctrl->creg + reg);
|
||||
}
|
||||
|
||||
static inline void shpc_writeb(struct controller *ctrl, int reg, u8 val)
|
||||
{
|
||||
writeb(val, ctrl->creg + reg);
|
||||
}
|
||||
|
||||
static inline u16 shpc_readw(struct controller *ctrl, int reg)
|
||||
{
|
||||
return readw(ctrl->creg + reg);
|
||||
|
|
Загрузка…
Ссылка в новой задаче