From: AnilKumar Ch Date: Thu, 27 Sep 2012 12:24:58 +0000 (+0530) Subject: can: c_can: fix segfault during rmmod X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~47^2~44^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c523530ce17defe6b28ccfe622c506488f430866;p=pandora-kernel.git can: c_can: fix segfault during rmmod This patch fixes an oops which occurs during unloading the driver. unregister_c_can_dev() is doing c_can/d_can module interrupts disable, which requires module clock enable. c_can/d_can interrupts enable/disable is handled properly in c_can_start and c_can_stop, so removing from unregister_c_can_dev(). The problem was triggered by adding runtime PM support to the c_can driver by this commit: 4cdd34b can: c_can: Add runtime PM support to Bosch C_CAN/D_CAN controller Signed-off-by: AnilKumar Ch Signed-off-by: Marc Kleine-Budde --- Reading git-diff-tree failed