Greg Kroah-Hartman e032d80774 mce: fix warning messages about static struct mce_device
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" <srivatsa.bhat@linux.vnet.ibm.com>
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Tested-by: Djalal Harouni <tixxdz@opendz.org>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Borislav Petkov <bp@amd64.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-01-16 17:08:42 -08:00
..
2011-09-27 18:08:04 +02:00
2011-12-12 14:26:10 -08:00
2011-12-08 10:22:07 -08:00
2011-12-08 10:22:07 -08:00
2011-07-01 10:37:14 +02:00
2011-07-26 16:49:47 -07:00
2011-02-17 14:59:22 +01:00
2011-12-21 16:26:03 -08:00
2011-12-05 12:00:16 +01:00
2011-03-18 10:39:30 +01:00
2011-12-06 10:02:38 +01:00
2011-12-05 15:06:17 +01:00
2012-01-07 12:19:37 +01:00
2011-08-04 16:13:49 -07:00
2011-10-31 17:30:44 -07:00
2011-03-18 10:39:30 +01:00
2011-01-13 17:32:41 -08:00
2011-12-05 12:17:29 +01:00
2011-03-18 10:39:30 +01:00