]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit49ff7b52e5c869e1cb1310e38d99d514026cbdf5
tree63520b218f560bd04bec777b3327c4df0576c0a8
parentc8b2ae41a23813e78268f6af7a1a9b88279e5619
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