]> git.baikalelectronics.ru Git - kernel.git/commit
tg3: Remove unneeded link_config.orig_... members
authorMatt Carlson <mcarlson@broadcom.com>
Mon, 13 Feb 2012 15:20:15 +0000 (15:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Feb 2012 01:45:07 +0000 (20:45 -0500)
commitb4bee645927fa93c9f2226b6325a60f65b7e965e
tree4241b16c71957516cac0f2532bda89c82d8bec30
parentf33d91dcba5bda229988e22f7429edf423b1563b
tg3: Remove unneeded link_config.orig_... members

This patch removes the unneeded link_config.orig_* members.  When the
phy is in a low power state, the TG3_PHYFLG_IS_LOW_POWER flag solely
determines how the link is configured.  When the phy is powered back up,
it can resume using the original settings.

For the phylib case, the link configuration still needs to be saved, but
since the phylib maintains its own configuration, we can repurpose the
(unused in this case) tg3 link configuration members.

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