From: Dmitry Baryshkov Date: Thu, 16 Oct 2008 05:03:11 +0000 (-0700) Subject: gpio: max7301: fix the race between chip addition and pins reconfiguration X-Git-Tag: v2.6.28-rc1~427 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c557fa3e4c156b8713c177d9dde08920130bf551;p=pandora-kernel.git gpio: max7301: fix the race between chip addition and pins reconfiguration There is a small race and code ugliness in max7301: pins are reconfigured after the chip is registered. Swap these calls so that the device is registered in correct state. Also this fixes the comile-time warning about unchecked gpiochip_remove. Signed-off-by: Dmitry Baryshkov Cc: Juergen Beisert Cc: Guennadi Liakhovetski Cc: Russell King Cc: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed