mirror of
https://github.com/torvalds/linux.git
synced 2026-12-01 02:54:05 +00:00
When suspending, there was a large list of warnings going something like: Device 'machinecheck1' does not have a release() function, it is broken and must be fixed This patch turns the static mce_devices into dynamically allocated, and properly frees them when they are removed from the system. It solves the warning messages on my laptop here. Reported-by: "Srivatsa S. Bhat" <[email protected]> Reported-by: Linus Torvalds <[email protected]> Tested-by: Djalal Harouni <[email protected]> Cc: Kay Sievers <[email protected]> Cc: Tony Luck <[email protected]> Cc: Borislav Petkov <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>