--- linux-2.4.14/drivers/acpi/ospm/button/bn_osl.c.orig Thu Nov 8 21:03:35 2001 +++ linux-2.4.14/drivers/acpi/ospm/button/bn_osl.c Fri Nov 9 12:52:57 2001 @@ -97,10 +97,13 @@ printk(KERN_WARNING "ACPI: Multiple power buttons detected, ignoring fixed-feature\n"); default: printk(KERN_INFO "ACPI: Power Button (CM) found\n"); - bn_power_button = BN_TYPE_GENERIC; - if (!proc_mkdir(BN_PROC_POWER_BUTTON, bn_proc_root)) { - status = AE_ERROR; + /* Only create proc entry, if it has not been created before */ + if (!bn_power_button) { + if (!proc_mkdir(BN_PROC_POWER_BUTTON, bn_proc_root)) { + status = AE_ERROR; + } } + bn_power_button = BN_TYPE_GENERIC; break; } break; @@ -130,9 +133,13 @@ default: bn_sleep_button = BN_TYPE_GENERIC; printk(KERN_INFO "ACPI: Sleep Button (CM) found\n"); - if (!proc_mkdir(BN_PROC_SLEEP_BUTTON, bn_proc_root)) { - status = AE_ERROR; + /* Only create proc entry, if it has not been created before */ + if (!bn_sleep_button) { + if (!proc_mkdir(BN_PROC_SLEEP_BUTTON, bn_proc_root)) { + status = AE_ERROR; + } } + bn_sleep_button = BN_TYPE_GENERIC; break; } break;