From: H Hartley Sweeten Date: Thu, 23 May 2013 19:44:17 +0000 (-0700) Subject: staging: comedi: usbduxsigma: use usbdux_pwm_stop() to force unlink urb X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~475 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bcc313186b55f2e9e5a786c40b8c5c589a24d5b;p=pandora-kernel.git staging: comedi: usbduxsigma: use usbdux_pwm_stop() to force unlink urb In tidy_up(), instead of duplicating the code in usbdux_pwm_stop() to unlink the pwm urb, just use usbdux_pwm_stop(). Since that function calls usb_kill_urb() and clears the 'pwm_cmd_running' flag, we can also remove the redundant code in tidy_up(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed