Skip to content

Commit ab3518a

Browse files
mstarovodavem330
authored andcommitted
net: atlantic: make aq_pci_func_init static
This patch makes aq_pci_func_init() static, because it's not used anywhere outside the file itself. Signed-off-by: Mark Starovoytov <[email protected]> Signed-off-by: Igor Russkikh <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e35df21 commit ab3518a

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// SPDX-License-Identifier: GPL-2.0-only
2-
/*
3-
* aQuantia Corporation Network Driver
4-
* Copyright (C) 2014-2019 aQuantia Corporation. All rights reserved
2+
/* Atlantic Network Driver
3+
*
4+
* Copyright (C) 2014-2019 aQuantia Corporation
5+
* Copyright (C) 2019-2020 Marvell International Ltd.
56
*/
67

78
/* File aq_pci_func.c: Definition of PCI functions. */
@@ -114,7 +115,7 @@ static int aq_pci_probe_get_hw_by_id(struct pci_dev *pdev,
114115
return 0;
115116
}
116117

117-
int aq_pci_func_init(struct pci_dev *pdev)
118+
static int aq_pci_func_init(struct pci_dev *pdev)
118119
{
119120
int err;
120121

drivers/net/ethernet/aquantia/atlantic/aq_pci_func.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/* SPDX-License-Identifier: GPL-2.0-only */
2-
/*
3-
* aQuantia Corporation Network Driver
4-
* Copyright (C) 2014-2017 aQuantia Corporation. All rights reserved
2+
/* Atlantic Network Driver
3+
*
4+
* Copyright (C) 2014-2019 aQuantia Corporation
5+
* Copyright (C) 2019-2020 Marvell International Ltd.
56
*/
67

78
/* File aq_pci_func.h: Declaration of PCI functions. */
@@ -19,7 +20,6 @@ struct aq_board_revision_s {
1920
const struct aq_hw_caps_s *caps;
2021
};
2122

22-
int aq_pci_func_init(struct pci_dev *pdev);
2323
int aq_pci_func_alloc_irq(struct aq_nic_s *self, unsigned int i,
2424
char *name, irq_handler_t irq_handler,
2525
void *irq_arg, cpumask_t *affinity_mask);

0 commit comments

Comments
 (0)