From: Fabio Estevam Date: Tue, 15 Apr 2014 22:56:14 +0000 (-0300) Subject: mfd: mc13xxx-core: Initialize the lock prior to using it X-Git-Tag: omap-for-v3.16/fixes-against-rc1~91^2~6^2~63 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48ca9a52c58c088c7492185ef33d0675d6382b5a;p=pandora-kernel.git mfd: mc13xxx-core: Initialize the lock prior to using it After request_threaded_irq() is called there is a chance that an interrupt may occur before the 'mc13xxx->lock' is initialized, which will trigger a kernel oops. In order to prevent that, move the initialization of 'mc13xxx->lock' prior to requesting the interrupts. Suggested-by: Russell King Signed-off-by: Fabio Estevam Acked-by: Russell King Signed-off-by: Lee Jones --- Reading git-diff-tree failed