From: Vivien Didelot Date: Fri, 23 Jan 2015 23:34:41 +0000 (-0500) Subject: net: dsa/mv88e6352: make mv88e6352_wait generic X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~134^2~124 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8665c6c16fee59540b14ef145363971dc6cb6c8;p=pandora-kernel.git net: dsa/mv88e6352: make mv88e6352_wait generic Some busy bits are available in the global register 1, such as the ATU Busy bit. We may want to use this function to wait for them to change, so add a new parameter to mv88e6352_wait() instead of hard-coding REG_GLOBAL2. In the meantime, since the REG_READ() macro already checks for error, remove the redundant check for ret < 0. Signed-off-by: Vivien Didelot Acked-by: Guenter Roeck Signed-off-by: David S. Miller --- Reading git-diff-tree failed