ramips: rename ethernet priv->device field to dev to match upstream
[openwrt/staging/jogo.git] / target / linux / ramips / files-4.14 / drivers / net / ethernet / mtk / ethtool.c
index 803346ac12a0ddb26829281350c554e5a7a91921..5732c28536c22a58b4e01ff15f924d65b419cc3d 100644 (file)
@@ -70,9 +70,9 @@ static void fe_get_drvinfo(struct net_device *dev,
        struct fe_priv *priv = netdev_priv(dev);
        struct fe_soc_data *soc = priv->soc;
 
-       strlcpy(info->driver, priv->device->driver->name, sizeof(info->driver));
+       strlcpy(info->driver, priv->dev->driver->name, sizeof(info->driver));
        strlcpy(info->version, MTK_FE_DRV_VERSION, sizeof(info->version));
-       strlcpy(info->bus_info, dev_name(priv->device), sizeof(info->bus_info));
+       strlcpy(info->bus_info, dev_name(priv->dev), sizeof(info->bus_info));
 
        if (soc->reg_table[FE_REG_FE_COUNTER_BASE])
                info->n_stats = ARRAY_SIZE(fe_gdma_str);