]> git.karo-electronics.de Git - linux-beck.git/commit
tg3: Use devfn to determine function number
authorMatt Carlson <mcarlson@broadcom.com>
Sat, 5 Jun 2010 17:24:36 +0000 (17:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Jun 2010 00:56:01 +0000 (17:56 -0700)
commit9c7df9157889a8f67d2d104fd52f2aacb3826fe7
tree24c2bab795aeee309fc075f83f752e4df4db7789
parent57d8b88030ca9f295bb72ef65228c6d86bed22f6
tg3: Use devfn to determine function number

The driver sometimes needs to know which function number the current
device is.  This patch changes the code to use devfn over internal
register values.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c
drivers/net/tg3.h