From: Lino Sanfilippo Date: Sat, 1 Dec 2012 02:39:28 +0000 (+0000) Subject: sky2: fix cleanup sequence in probe() function X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~45^2~110 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c85382e30618f66d4b15e608ff32253beb22649;p=pandora-kernel.git sky2: fix cleanup sequence in probe() function The cleanup sequence in sky2_probe() that is called in case of an error is mixed up in different places: - pci_disable_device() is not called in each case the device has been enabled before - same for pci_disable_msi(): test_msi() may return with an error != EOPNOTSUPP (due to failure of request_irq()). In that case msi is not disabled - also failure of register_netdev() does not disable msi This patch fixes the concerning parts. Signed-off-by: Lino Sanfilippo Signed-off-by: David S. Miller --- Reading git-diff-tree failed