summaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorDarrick J. Wong2008-11-12 22:25:00 +0100
committerLinus Torvalds2008-11-13 02:17:16 +0100
commitfe2d5ffc74a1de6a31e9fd65b65cce72d881edf7 (patch)
treef867318d9831cfa347e1374d6f723564f235399c /mm/page_alloc.c
parentatmel_lcdfb: change irq_base definition to allow error reporting (diff)
downloadkernel-qcow2-linux-fe2d5ffc74a1de6a31e9fd65b65cce72d881edf7.tar.gz
kernel-qcow2-linux-fe2d5ffc74a1de6a31e9fd65b65cce72d881edf7.tar.xz
kernel-qcow2-linux-fe2d5ffc74a1de6a31e9fd65b65cce72d881edf7.zip
Fix platform drivers that crash on suspend/resume
It turns out that if one registers a struct platform_device, the platform device code expects that platform_device.device->driver points to a struct driver inside a struct platform_driver. This is not the case with the ipmi-si, ipmi-msghandler and ibmaem drivers, which causes the suspend/resume hook functions to jump off into nowhere, causing a crash. Make this assumption hold true for these three drivers. Signed-off-by: Darrick J. Wong <djwong@us.ibm.com> Acked-by: Corey Minyard <cminyard@mvista.com> Cc: Jean Delvare <khali@linux-fr.org> Cc: Kay Sievers <kay.sievers@vrfy.org> Cc: Greg KH <greg@kroah.com> Cc: <stable@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
0 files changed, 0 insertions, 0 deletions