From: Matt Carlson Date: Fri, 13 Nov 2009 13:03:42 +0000 (+0000) Subject: tg3: Move napi_add calls below tg3_get_invariants X-Git-Tag: v2.6.33-rc1~388^2~351 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78f90dcf184b8225a24217605c4289f1986451a3;p=pandora-kernel.git tg3: Move napi_add calls below tg3_get_invariants tg3_get_invariants(), among other things, discovers whether or not the device is MSI-X capable and how many interrupts it supports. This discovery needs to happen before registering NAPI instances with netdev. This patch moves the code block that calls napi_add later in tg3_init_one() so that tg3_get_invariants() has a chance to run first. Signed-off-by: Matt Carlson Reviewed-by: Michael Chan Signed-off-by: David S. Miller --- Reading git-diff-tree failed