From: Mika Westerberg Date: Mon, 16 Apr 2012 08:48:40 +0000 (+0300) Subject: smb347-charger: Move IRQ enabling to the end of probe X-Git-Tag: v3.5-rc1~23^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d72bade76d11da661d76aec5801567d573f39fea;p=pandora-kernel.git smb347-charger: Move IRQ enabling to the end of probe There is a potential problem if we call smb347_irq_enable() from smb347_irq_init() because smb347_irq_enable() makes the device registers read-only once it returns and smb347_irq_init() expects them to still be read-write. Currently no harm happens because it is the last call we make in smb347_irq_init(). Anyway a better place for enabling IRQs is at the end of probe function and this is also symmetric to call smb347_irq_disable() which is done at the beginning of remove function. Signed-off-by: Mika Westerberg Signed-off-by: Anton Vorontsov --- Reading git-diff-tree failed