]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/edac/edac_device.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland/dlm
[mv-sheeva.git] / drivers / edac / edac_device.c
index ca9113e1c1060ad9195d7cba55a35d70ed007f20..a7d2c717d0338582339ce23198b0a440dc1299e4 100644 (file)
@@ -389,7 +389,7 @@ static void del_edac_device_from_global_list(struct edac_device_ctl_info
  */
 static void edac_device_workq_function(struct work_struct *work_req)
 {
-       struct delayed_work *d_work = (struct delayed_work *)work_req;
+       struct delayed_work *d_work = to_delayed_work(work_req);
        struct edac_device_ctl_info *edac_dev = to_edac_device_ctl_work(d_work);
 
        mutex_lock(&device_ctls_mutex);