aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c
diff options
context:
space:
mode:
authorIgor Russkikh <igor.russkikh@aquantia.com>2018-01-19 17:03:22 +0300
committerDavid S. Miller <davem@davemloft.net>2018-01-21 18:19:03 -0500
commitef24175d9fd2457e20c4122a1904a4b1ccfb661a (patch)
treea9235a8e207df680c5c0da825ff30b891cc0fb69 /drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c
parentnet: aquantia: Cleanup pci functions module (diff)
downloadlinux-dev-ef24175d9fd2457e20c4122a1904a4b1ccfb661a.tar.xz
linux-dev-ef24175d9fd2457e20c4122a1904a4b1ccfb661a.zip
net: aquantia: Remove create/destroy from hw ops
These ops are not related to HW and are now implemented in pci module. Thus, remove these ops pointers and implementation. Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c')
-rw-r--r--drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c b/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c
index 491a901b6d22..9c9fb1e8b453 100644
--- a/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c
+++ b/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c
@@ -79,29 +79,6 @@ const struct aq_hw_caps_s hw_atl_a0_caps_aqc109 = {
HW_ATL_A0_RATE_100M,
};
-
-static struct aq_hw_s *hw_atl_a0_create(struct aq_pci_func_s *aq_pci_func,
- unsigned int port)
-{
- struct aq_hw_s *self = NULL;
-
- self = kzalloc(sizeof(*self), GFP_KERNEL);
- if (!self)
- goto err_exit;
-
- self->aq_pci_func = aq_pci_func;
-
- self->not_ff_addr = 0x10U;
-
-err_exit:
- return self;
-}
-
-static void hw_atl_a0_destroy(struct aq_hw_s *self)
-{
- kfree(self);
-}
-
static int hw_atl_a0_hw_reset(struct aq_hw_s *self)
{
int err = 0;
@@ -906,8 +883,6 @@ err_exit:
}
const struct aq_hw_ops hw_atl_ops_a0 = {
- .create = hw_atl_a0_create,
- .destroy = hw_atl_a0_destroy,
.hw_get_mac_permanent = hw_atl_utils_get_mac_permanent,
.hw_set_mac_address = hw_atl_a0_hw_mac_addr_set,
.hw_get_link_status = hw_atl_utils_mpi_get_link_status,