mce: fix warning messages about static struct mce_device
authorGreg Kroah-Hartman <>
Mon, 16 Jan 2012 22:40:28 +0000 (14:40 -0800)
committerLinus Torvalds <>
Tue, 17 Jan 2012 01:08:42 +0000 (17:08 -0800)
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" <>
Reported-by: Linus Torvalds <>
Tested-by: Djalal Harouni <>
Cc: Kay Sievers <>
Cc: Tony Luck <>
Cc: Borislav Petkov <>
Signed-off-by: Greg Kroah-Hartman <>
Signed-off-by: Linus Torvalds <>

No differences found