tg3: Eliminate unneeded prototype
authorMatt Carlson <mcarlson@broadcom.com>
Mon, 13 Feb 2012 10:20:11 +0000 (10:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Feb 2012 20:57:32 +0000 (15:57 -0500)
This patch eliminates the unneeded tg3_halt_cpu() prototype and moves
the tg3_setup_phy() prototype closer to where it is needed.

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

index cc092170dfa3c1f78924fed845cbd64388650df2..b89c9322c0a41437e0850689567b7d253916aa11 100644 (file)
@@ -2709,9 +2709,6 @@ static int tg3_5700_link_polarity(struct tg3 *tp, u32 speed)
        return 0;
 }
 
-static int tg3_setup_phy(struct tg3 *, int);
-static int tg3_halt_cpu(struct tg3 *, u32);
-
 static void tg3_power_down_phy(struct tg3 *tp, bool do_low_power)
 {
        u32 val;
@@ -3514,6 +3511,8 @@ static int tg3_power_up(struct tg3 *tp)
        return err;
 }
 
+static int tg3_setup_phy(struct tg3 *, int);
+
 static int tg3_power_down_prepare(struct tg3 *tp)
 {
        u32 misc_host_ctrl;