hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/net/ethernet/microchip/encx24j600.c
....@@ -1,14 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /**
23 * Microchip ENCX24J600 ethernet driver
34 *
45 * Copyright (C) 2015 Gridpoint
56 * Author: Jon Ringle <jringle@gridpoint.com>
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License as published by
9
- * the Free Software Foundation; either version 2 of the License, or
10
- * (at your option) any later version.
11
- *
127 */
138
149 #include <linux/device.h>
....@@ -609,9 +604,8 @@
609604 }
610605 }
611606
612
-static int encx24j600_hw_init(struct encx24j600_priv *priv)
607
+static void encx24j600_hw_init(struct encx24j600_priv *priv)
613608 {
614
- int ret = 0;
615609 u16 macon2;
616610
617611 priv->hw_enabled = false;
....@@ -654,8 +648,6 @@
654648
655649 if (netif_msg_hw(priv))
656650 encx24j600_dump_config(priv, "Hw is initialized");
657
-
658
- return ret;
659651 }
660652
661653 static void encx24j600_hw_enable(struct encx24j600_priv *priv)
....@@ -897,7 +889,7 @@
897889 }
898890
899891 /* Deal with a transmit timeout */
900
-static void encx24j600_tx_timeout(struct net_device *dev)
892
+static void encx24j600_tx_timeout(struct net_device *dev, unsigned int txqueue)
901893 {
902894 struct encx24j600_priv *priv = netdev_priv(dev);
903895
....@@ -1050,12 +1042,7 @@
10501042 }
10511043
10521044 /* Initialize the device HW to the consistent state */
1053
- if (encx24j600_hw_init(priv)) {
1054
- netif_err(priv, probe, ndev,
1055
- DRV_NAME ": HW initialization error\n");
1056
- ret = -EIO;
1057
- goto out_free;
1058
- }
1045
+ encx24j600_hw_init(priv);
10591046
10601047 kthread_init_worker(&priv->kworker);
10611048 kthread_init_work(&priv->tx_work, encx24j600_tx_proc);