]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
tg3: Eliminate unneeded prototype
authorMatt Carlson <mcarlson@broadcom.com>
Mon, 13 Feb 2012 10:20:11 +0000 (10:20 +0000)
committerJoe Jin <joe.jin@oracle.com>
Tue, 28 Aug 2012 07:21:31 +0000 (15:21 +0800)
This patch eliminates the unneeded tg3_halt_cpu() prototype and moves
the tg3_setup_phy() prototype closer to where it is needed.

(cherry picked from commit 4b40952268c2390a71b9728194eb4b4dd514c087)
Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/tg3.c

index b4bbeb04aaf7a96322b033da8c0998b3d792f2bd..da73a9ca031da5701f5d6a1cdb7914823b4fba69 100644 (file)
@@ -2713,9 +2713,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;
@@ -3518,6 +3515,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;