summaryrefslogtreecommitdiffstats
path: root/drivers/edac/i5100_edac.c
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@163.com>2016-01-01 15:59:07 +0100
committerBorislav Petkov <bp@suse.de>2016-01-01 18:31:34 +0100
commit1cac5503fbf751f121d0c9f96e69d1fdd3eb1471 (patch)
tree292061ae7ee29fcd51f8d8a2356a9697f867814d /drivers/edac/i5100_edac.c
parentMAINTAINERS: Fix EDAC repo URLs format (diff)
downloadlinux-1cac5503fbf751f121d0c9f96e69d1fdd3eb1471.tar.xz
linux-1cac5503fbf751f121d0c9f96e69d1fdd3eb1471.zip
EDAC, i5100: Use to_delayed_work()
Use to_delayed_work() instead of open-coding it. Signed-off-by: Geliang Tang <geliangtang@163.com> Cc: linux-edac <linux-edac@vger.kernel.org> Link: http://lkml.kernel.org/r/58c0e319c7263a10b692100c657c06c42814aecf.1451659910.git.geliangtang@163.com Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'drivers/edac/i5100_edac.c')
-rw-r--r--drivers/edac/i5100_edac.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/edac/i5100_edac.c b/drivers/edac/i5100_edac.c
index 40917775dca1..c655162caf08 100644
--- a/drivers/edac/i5100_edac.c
+++ b/drivers/edac/i5100_edac.c
@@ -575,9 +575,7 @@ static void i5100_check_error(struct mem_ctl_info *mci)
static void i5100_refresh_scrubbing(struct work_struct *work)
{
- struct delayed_work *i5100_scrubbing = container_of(work,
- struct delayed_work,
- work);
+ struct delayed_work *i5100_scrubbing = to_delayed_work(work);
struct i5100_priv *priv = container_of(i5100_scrubbing,
struct i5100_priv,
i5100_scrubbing);