From: Sathya Perla Date: Mon, 23 Feb 2015 09:20:13 +0000 (-0500) Subject: be2net: remove code duplication relating to Lancer reset sequence X-Git-Tag: omap-for-v4.1/fixes-rc1~141^2~405^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fa465c0ce0d99f098195d7b0a550aeb1b2a8c44;p=pandora-kernel.git be2net: remove code duplication relating to Lancer reset sequence The steps needed for Lancer's reset/initialization sequence are: a) wait for SLIPORT_STAUS RDY bit to be set b) set the SLIPORT_CONTROL IP bit c) repeat step "a" The code needed for this sequence is already covered by the be_func_init() routine (with minor modifications.) So, get rid of the lancer_test_and_set_rdy_state() and lancer_provisioning_error() routines that unnecessarily duplicate this code. Also fixed the error recovery function to take care of these changes Signed-off-by: Sathya Perla Signed-off-by: Kalesh AP Signed-off-by: David S. Miller --- Reading git-diff-tree failed