mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-17 20:54:10 +00:00
net/arc: Delete driver version
Drop constant driver version in favour of global linux kernel. Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
0d8c4becb4
commit
52682a130f
4 changed files with 0 additions and 6 deletions
|
@ -130,7 +130,6 @@ struct arc_emac_mdio_bus_data {
|
||||||
*/
|
*/
|
||||||
struct arc_emac_priv {
|
struct arc_emac_priv {
|
||||||
const char *drv_name;
|
const char *drv_name;
|
||||||
const char *drv_version;
|
|
||||||
void (*set_mac_speed)(void *priv, unsigned int speed);
|
void (*set_mac_speed)(void *priv, unsigned int speed);
|
||||||
|
|
||||||
/* Devices */
|
/* Devices */
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
#include "emac.h"
|
#include "emac.h"
|
||||||
|
|
||||||
#define DRV_NAME "emac_arc"
|
#define DRV_NAME "emac_arc"
|
||||||
#define DRV_VERSION "1.0"
|
|
||||||
|
|
||||||
static int emac_arc_probe(struct platform_device *pdev)
|
static int emac_arc_probe(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
|
@ -36,7 +35,6 @@ static int emac_arc_probe(struct platform_device *pdev)
|
||||||
|
|
||||||
priv = netdev_priv(ndev);
|
priv = netdev_priv(ndev);
|
||||||
priv->drv_name = DRV_NAME;
|
priv->drv_name = DRV_NAME;
|
||||||
priv->drv_version = DRV_VERSION;
|
|
||||||
|
|
||||||
err = of_get_phy_mode(dev->of_node, &interface);
|
err = of_get_phy_mode(dev->of_node, &interface);
|
||||||
if (err) {
|
if (err) {
|
||||||
|
|
|
@ -92,7 +92,6 @@ static void arc_emac_get_drvinfo(struct net_device *ndev,
|
||||||
struct arc_emac_priv *priv = netdev_priv(ndev);
|
struct arc_emac_priv *priv = netdev_priv(ndev);
|
||||||
|
|
||||||
strlcpy(info->driver, priv->drv_name, sizeof(info->driver));
|
strlcpy(info->driver, priv->drv_name, sizeof(info->driver));
|
||||||
strlcpy(info->version, priv->drv_version, sizeof(info->version));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct ethtool_ops arc_emac_ethtool_ops = {
|
static const struct ethtool_ops arc_emac_ethtool_ops = {
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
#include "emac.h"
|
#include "emac.h"
|
||||||
|
|
||||||
#define DRV_NAME "rockchip_emac"
|
#define DRV_NAME "rockchip_emac"
|
||||||
#define DRV_VERSION "1.1"
|
|
||||||
|
|
||||||
struct emac_rockchip_soc_data {
|
struct emac_rockchip_soc_data {
|
||||||
unsigned int grf_offset;
|
unsigned int grf_offset;
|
||||||
|
@ -112,7 +111,6 @@ static int emac_rockchip_probe(struct platform_device *pdev)
|
||||||
|
|
||||||
priv = netdev_priv(ndev);
|
priv = netdev_priv(ndev);
|
||||||
priv->emac.drv_name = DRV_NAME;
|
priv->emac.drv_name = DRV_NAME;
|
||||||
priv->emac.drv_version = DRV_VERSION;
|
|
||||||
priv->emac.set_mac_speed = emac_rockchip_set_mac_speed;
|
priv->emac.set_mac_speed = emac_rockchip_set_mac_speed;
|
||||||
|
|
||||||
err = of_get_phy_mode(dev->of_node, &interface);
|
err = of_get_phy_mode(dev->of_node, &interface);
|
||||||
|
|
Loading…
Add table
Reference in a new issue