Skip to content

Commit

Permalink
bnx2x: make bnx2x_close() static again
Browse files Browse the repository at this point in the history
Commit 8304859 "bnx2x: add fan failure event handling" made the function
bnx2x_close() non-static unnecessarily. The function is not called from
other sources. Make it static again.

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Acked-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Michal Schmidt authored and David S. Miller committed Feb 20, 2012
1 parent 32efe08 commit 56ad315
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
Original file line number Diff line number Diff line change
Expand Up @@ -2078,8 +2078,6 @@ static inline u32 reg_poll(struct bnx2x *bp, u32 reg, u32 expected, int ms,
#define BNX2X_VPD_LEN 128
#define VENDOR_ID_LEN 4

int bnx2x_close(struct net_device *dev);

/* Congestion management fairness mode */
#define CMNG_FNS_NONE 0
#define CMNG_FNS_MINMAX 1
Expand Down
4 changes: 3 additions & 1 deletion drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -8711,6 +8711,8 @@ static void bnx2x_parity_recover(struct bnx2x *bp)
}
}

static int bnx2x_close(struct net_device *dev);

/* bnx2x_nic_unload() flushes the bnx2x_wq, thus reset task is
* scheduled on a general queue in order to prevent a dead lock.
*/
Expand Down Expand Up @@ -10288,7 +10290,7 @@ static int bnx2x_open(struct net_device *dev)
}

/* called with rtnl_lock */
int bnx2x_close(struct net_device *dev)
static int bnx2x_close(struct net_device *dev)
{
struct bnx2x *bp = netdev_priv(dev);

Expand Down

0 comments on commit 56ad315

Please sign in to comment.