From: Ezequiel Garcia Date: Wed, 23 Jul 2014 19:47:32 +0000 (-0300) Subject: net: phy: Ensure the MDIO bus module is held X-Git-Tag: omap-for-v3.17/fixes-against-rc2~215^2~12^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3565f278a9babc00032292be489e7fbff4f48d1;p=pandora-kernel.git net: phy: Ensure the MDIO bus module is held This commit adds proper module_{get,put} to prevent the MDIO bus module from being unloaded while the phydev is connected. By doing so, we fix a kernel panic produced when a MDIO driver is removed, but the phydev that relies on it is attached and running. Signed-off-by: Ezequiel Garcia Reviewed-by: Florian Fainelli Tested-by: Florian Fainelli Signed-off-by: David S. Miller --- Reading git-diff-tree failed