From: Stephane Grosjean Date: Fri, 28 Nov 2014 12:49:10 +0000 (+0100) Subject: can: peak_usb: fix cleanup sequence order in case of error during init X-Git-Tag: omap-for-v3.19/fixes-rc1~125^2~10^2~4^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af35d0f1cce7a990286e2b94c260a2c2d2a0e4b0;p=pandora-kernel.git can: peak_usb: fix cleanup sequence order in case of error during init This patch sets the correct reverse sequence order to the instructions set to run, when any failure occurs during the initialization steps. It also adds the missing unregistration call of the can device if the failure appears after having been registered. Signed-off-by: Stephane Grosjean Cc: linux-stable Signed-off-by: Marc Kleine-Budde --- Reading git-diff-tree failed