|
@@ -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)
|
|
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);
|
|
struct edac_device_ctl_info *edac_dev = to_edac_device_ctl_work(d_work);
|
|
|
|
|
|
mutex_lock(&device_ctls_mutex);
|
|
mutex_lock(&device_ctls_mutex);
|