edac: use to_delayed_work()
authorJean Delvare <khali@linux-fr.org>
Mon, 13 Apr 2009 21:40:21 +0000 (14:40 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 13 Apr 2009 22:04:34 +0000 (15:04 -0700)
commitfbeb4384748abb78531bbe1e80d627412a0abcfa
tree63520b218f560bd04bec777b3327c4df0576c0a8
parente6da46b273443c8cebef81a68b2d0d955b8a07b4
edac: use to_delayed_work()

The edac-core driver includes code which assumes that the work_struct
which is included in every delayed_work is the first member of that
structure.  This is currently the case but might change in the future, so
use to_delayed_work() instead, which doesn't make such an assumption.

linux-2.6.30-rc1 has the to_delayed_work() function that will allow this
patch to work

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Doug Thompson <dougthompson@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/edac/edac_device.c
drivers/edac/edac_mc.c
drivers/edac/edac_pci.c