From: Mark Brown Date: Tue, 27 May 2008 05:37:19 +0000 (-0400) Subject: Input: wm97xx-core - fix race on PHY init X-Git-Tag: v2.6.26-rc5~32^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5de4cd431db749bdca58ec88862462729f6159b2;p=pandora-kernel.git Input: wm97xx-core - fix race on PHY init The chip phy_init() function must be called before the dig_enable() function but dig_enable() is called when the device is opened and we only call phy_init() after having reigstered the device, meaning the two can race. Fix this by doing the phy_init() before we register the input device. Thanks to Rodolfo Giometti for the report. Signed-off-by: Mark Brown Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed