From: Stefan Agner Date: Tue, 15 Jul 2014 12:56:20 +0000 (+0200) Subject: can: flexcan: flexcan_get_berr_counter(): switch on clocks before accessing ecr register X-Git-Tag: fixes-against-v3.18-rc2~81^2~248^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec56acfef2af184ca485ffeba16adbd56c110c94;p=pandora-kernel.git can: flexcan: flexcan_get_berr_counter(): switch on clocks before accessing ecr register The funcion flexcan_get_berr_counter() may be called from userspace even if the interface is down, this the clocks are disabled. This patch switches on the clocks before accessing the ecr register. Reported-by: Ashutosh Singh Signed-off-by: Stefan Agner Signed-off-by: Marc Kleine-Budde --- Reading git-diff-tree failed