From: Vaishali Thakkar Date: Fri, 6 Mar 2015 10:53:35 +0000 (+0530) Subject: Staging: rtl8712: Eliminate use of _cancel_timer_ex X-Git-Tag: omap-for-v4.1/fixes-rc1~165^2~138^2~421 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6501c8e7d86cca5f;p=pandora-kernel.git Staging: rtl8712: Eliminate use of _cancel_timer_ex Use timer API function del_timer_sync instead of driver specific function _cancel_timer_ex as besides deactivating a timer, it ensures that the timer is stopped on all CPUs before the driver exists. Also, definition of function _cancel_timer_ex is removed as it is no longer needed after this change. This is done using Coccinelle and semantic patch used for this is as follows: @@ expression x; @@ - _cancel_timer_ex (&x); + del_timer_sync (&x); Signed-off-by: Vaishali Thakkar Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed