Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33425
b: refs/heads/master
c: 4e6e650
h: refs/heads/master
i:
  33423: be41c3f
v: v3
  • Loading branch information
William Morrrow authored and Len Brown committed Aug 16, 2006
1 parent cec5628 commit c0c94d9
Show file tree
Hide file tree
Showing 14 changed files with 19 additions and 42 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: df6fd31995cb2e38b2a7e94bc8f1559b8f55404e
refs/heads/master: 4e6e6504a4572dee3afcb0925ce92ad559e1e0db
2 changes: 1 addition & 1 deletion trunk/arch/i386/kernel/acpi/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ static inline int gsi_irq_sharing(int gsi) { return gsi; }

#define BAD_MADT_ENTRY(entry, end) ( \
(!entry) || (unsigned long)entry + sizeof(*entry) > end || \
((acpi_table_entry_header *)entry)->length < sizeof(*entry))
((acpi_table_entry_header *)entry)->length != sizeof(*entry))

#define PREFIX "ACPI: "

Expand Down
5 changes: 4 additions & 1 deletion trunk/arch/i386/kernel/acpi/wakeup.S
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,10 @@ ENTRY(do_suspend_lowlevel)
pushl $3
call acpi_enter_sleep_state
addl $4, %esp
ret

# In case of S3 failure, we'll emerge here. Jump
# to ret_point to recover
jmp ret_point
.p2align 4,,7
ret_point:
call restore_registers
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/ia64/kernel/acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

#define BAD_MADT_ENTRY(entry, end) ( \
(!entry) || (unsigned long)entry + sizeof(*entry) > end || \
((acpi_table_entry_header *)entry)->length < sizeof(*entry))
((acpi_table_entry_header *)entry)->length != sizeof(*entry))

#define PREFIX "ACPI: "

Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/acpi/ac.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,6 @@ static int __init acpi_ac_init(void)
{
int result;

if (acpi_disabled)
return -ENODEV;

acpi_ac_dir = acpi_lock_ac_dir();
if (!acpi_ac_dir)
Expand Down
8 changes: 6 additions & 2 deletions trunk/drivers/acpi/acpi_memhotplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -484,8 +484,10 @@ acpi_memory_register_notify_handler(acpi_handle handle,


status = is_memory_device(handle);
if (ACPI_FAILURE(status))
if (ACPI_FAILURE(status)){
ACPI_EXCEPTION((AE_INFO, status, "handle is no memory device"));
return AE_OK; /* continue */
}

status = acpi_install_notify_handler(handle, ACPI_SYSTEM_NOTIFY,
acpi_memory_device_notify, NULL);
Expand All @@ -501,8 +503,10 @@ acpi_memory_deregister_notify_handler(acpi_handle handle,


status = is_memory_device(handle);
if (ACPI_FAILURE(status))
if (ACPI_FAILURE(status)){
ACPI_EXCEPTION((AE_INFO, status, "handle is no memory device"));
return AE_OK; /* continue */
}

status = acpi_remove_notify_handler(handle,
ACPI_SYSTEM_NOTIFY,
Expand Down
3 changes: 0 additions & 3 deletions trunk/drivers/acpi/battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -757,9 +757,6 @@ static int __init acpi_battery_init(void)
{
int result;

if (acpi_disabled)
return -ENODEV;

acpi_battery_dir = acpi_lock_battery_dir();
if (!acpi_battery_dir)
return -ENODEV;
Expand Down
6 changes: 1 addition & 5 deletions trunk/drivers/acpi/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include <linux/module.h>
#include <linux/init.h>
#include <linux/ioport.h>
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/sched.h>
#include <linux/pm.h>
Expand Down Expand Up @@ -739,10 +738,7 @@ static int __init acpi_init(void)
return -ENODEV;
}

result = firmware_register(&acpi_subsys);
if (result < 0)
printk(KERN_WARNING "%s: firmware_register error: %d\n",
__FUNCTION__, result);
firmware_register(&acpi_subsys);

result = acpi_bus_init();

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/acpi/i2c_ec.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ static int acpi_ec_hc_add(struct acpi_device *device)
status = acpi_evaluate_integer(ec_hc->handle, "_EC", NULL, &val);
if (ACPI_FAILURE(status)) {
ACPI_DEBUG_PRINT((ACPI_DB_WARN, "Error obtaining _EC\n"));
kfree(ec_hc);
kfree(ec_hc->smbus);
kfree(smbus);
return -EIO;
}
Expand Down
10 changes: 0 additions & 10 deletions trunk/drivers/acpi/osl.c
Original file line number Diff line number Diff line change
Expand Up @@ -746,16 +746,6 @@ acpi_status acpi_os_wait_semaphore(acpi_handle handle, u32 units, u16 timeout)
ACPI_DEBUG_PRINT((ACPI_DB_MUTEX, "Waiting for semaphore[%p|%d|%d]\n",
handle, units, timeout));

/*
* This can be called during resume with interrupts off.
* Like boot-time, we should be single threaded and will
* always get the lock if we try -- timeout or not.
* If this doesn't succeed, then we will oops courtesy of
* might_sleep() in down().
*/
if (!down_trylock(sem))
return AE_OK;

switch (timeout) {
/*
* No Wait:
Expand Down
3 changes: 0 additions & 3 deletions trunk/drivers/acpi/sbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1714,9 +1714,6 @@ static int __init acpi_sbs_init(void)
{
int result = 0;

if (acpi_disabled)
return -ENODEV;

init_MUTEX(&sbs_sem);

if (capacity_mode != DEF_CAPACITY_UNIT
Expand Down
12 changes: 2 additions & 10 deletions trunk/drivers/acpi/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#include <linux/module.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/acpi.h>

#include <acpi/acpi_drivers.h>
Expand Down Expand Up @@ -114,8 +113,6 @@ static struct kset acpi_namespace_kset = {
static void acpi_device_register(struct acpi_device *device,
struct acpi_device *parent)
{
int err;

/*
* Linkage
* -------
Expand All @@ -141,10 +138,7 @@ static void acpi_device_register(struct acpi_device *device,
device->kobj.parent = &parent->kobj;
device->kobj.ktype = &ktype_acpi_ns;
device->kobj.kset = &acpi_namespace_kset;
err = kobject_register(&device->kobj);
if (err < 0)
printk(KERN_WARNING "%s: kobject_register error: %d\n",
__FUNCTION__, err);
kobject_register(&device->kobj);
create_sysfs_device_files(device);
}

Expand Down Expand Up @@ -1456,9 +1450,7 @@ static int __init acpi_scan_init(void)
if (acpi_disabled)
return 0;

result = kset_register(&acpi_namespace_kset);
if (result < 0)
printk(KERN_ERR PREFIX "kset_register error: %d\n", result);
kset_register(&acpi_namespace_kset);

result = bus_register(&acpi_bus_type);
if (result) {
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/acpi/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ acpi_evaluate_integer(acpi_handle handle,
if (!data)
return AE_BAD_PARAMETER;

element = kmalloc(sizeof(union acpi_object), irqs_disabled() ? GFP_ATOMIC: GFP_KERNEL);
element = kmalloc(sizeof(union acpi_object), GFP_KERNEL);
if (!element)
return AE_NO_MEMORY;

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/pci/hotplug/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ config HOTPLUG_PCI_IBM

config HOTPLUG_PCI_ACPI
tristate "ACPI PCI Hotplug driver"
depends on (!ACPI_DOCK && ACPI && HOTPLUG_PCI) || (ACPI_DOCK && HOTPLUG_PCI)
depends on ACPI_DOCK && HOTPLUG_PCI
help
Say Y here if you have a system that supports PCI Hotplug using
ACPI.
Expand Down

0 comments on commit c0c94d9

Please sign in to comment.