mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch] minimal ACPI bugfix
@ 2002-03-11 13:31 Wolly
  0 siblings, 0 replies; 2+ messages in thread
From: Wolly @ 2002-03-11 13:31 UTC (permalink / raw)
  To: andrew.grover, acpi-devel; +Cc: linux-kernel

"Avoid creating multiple /proc entries when (buggy) ACPI
BIOS tables erroneously list both fixed- and generic-
feature buttons."
While the function already prints a disgnostic message 
on this and registers the new button dir in /proc, it fails to 
remove the old one. 

This is a trivial patch which actually does that. 
ACPI maintainer Andy, please approve that. 

Regards,
Wolly

Patch is against 2.4.18 kernel;
patched file sm_osl.c is in drivers/acpi/ospm/button/

---------------------------<patch>---------------------------
diff -u bn_osl.c bn_osl.c-patched 
--- bn_osl.c	Mon Mar 11 14:06:56 2002
+++ bn_osl.c-patched	Mon Mar 11 14:02:27 2002
@@ -96,6 +96,7 @@
 			break;
 		case BN_TYPE_FIXED:
 			printk(KERN_WARNING "ACPI: Multiple power buttons detected, ignoring fixed-feature\n");
+			remove_proc_entry(BN_PROC_POWER_BUTTON, bn_proc_root);
 		default:
 			printk(KERN_INFO "ACPI: Power Button (CM) found\n");
 			bn_power_button = BN_TYPE_GENERIC;

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: [patch] minimal ACPI bugfix
@ 2002-03-11 18:17 Grover, Andrew
  0 siblings, 0 replies; 2+ messages in thread
From: Grover, Andrew @ 2002-03-11 18:17 UTC (permalink / raw)
  To: 'Wolly', acpi-devel; +Cc: linux-kernel

> From: Wolly [mailto:wwolly@gmx.net]
> "Avoid creating multiple /proc entries when (buggy) ACPI
> BIOS tables erroneously list both fixed- and generic-
> feature buttons."
> While the function already prints a disgnostic message 
> on this and registers the new button dir in /proc, it fails to 
> remove the old one. 

> Patch is against 2.4.18 kernel;
> patched file sm_osl.c is in drivers/acpi/ospm/button/

Hi Wolly,

ACPI development is happening out of the mainline for now, until it
stabilizes. Please try the latest patches available at
http://sf.net/projects/acpi . AFAIK the button thing is fixed in the latest
ACPI patch, although the sysrq hookup feature is new, so that is definitely
useful code, thanks.

Regards -- Andy

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-03-11 18:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-11 13:31 [patch] minimal ACPI bugfix Wolly
2002-03-11 18:17 Grover, Andrew

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®