From: Cesar Eduardo Barros Date: Tue, 4 Dec 2012 22:21:12 +0000 (-0200) Subject: usb: phy: mv-otg: use to_delayed_work instead of cast X-Git-Tag: v3.9-rc1~126^2~42^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63a1307930867a45f86a1a69f80315b2df7b7b49;p=pandora-kernel.git usb: phy: mv-otg: use to_delayed_work instead of cast Directly casting a work_struct pointer to a delayed_work is risky if the work member of struct delayed_work is ever moved from being the first member. Instead, use the inline function to_delayed_work(), which does the same cast in a safer way (using container_of). Signed-off-by: Cesar Eduardo Barros Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed