From: Geliang Tang Date: Fri, 18 Mar 2016 02:22:03 +0000 (+1100) Subject: wl1251: use to_delayed_work() X-Git-Tag: v5.15~13631^2~319^2~32 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d1162f0283f0b4421d1098dd048a5e3cf8b2abb6;p=platform%2Fkernel%2Flinux-starfive.git wl1251: use to_delayed_work() Use to_delayed_work() instead of open-coding it. Signed-off-by: Geliang Tang [Update commit message] Signed-off-by: Julian Calaby Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ti/wl1251/ps.c b/drivers/net/wireless/ti/wl1251/ps.c index b9e27b9..fa01b0a 100644 --- a/drivers/net/wireless/ti/wl1251/ps.c +++ b/drivers/net/wireless/ti/wl1251/ps.c @@ -32,7 +32,7 @@ void wl1251_elp_work(struct work_struct *work) struct delayed_work *dwork; struct wl1251 *wl; - dwork = container_of(work, struct delayed_work, work); + dwork = to_delayed_work(work); wl = container_of(dwork, struct wl1251, elp_work); wl1251_debug(DEBUG_PSM, "elp work");