]> 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)
commit877ed960808d1bc3b53b20f671d340c82072eded
tree4241b16c71957516cac0f2532bda89c82d8bec30
parenteed9673e88ab54fc353a6869be0ee0c86f3c5d03
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