dev has been taken up by switch_dev so it's named pdev instead.
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
#include <linux/skbuff.h>
#include <linux/netdevice.h>
#include <linux/netlink.h>
+#include <linux/of_device.h>
#include <linux/bitops.h>
#include <net/genetlink.h>
#include <linux/switch.h>
}
priv->mii_bus = phydev->mdio.bus;
+ priv->pdev = &phydev->mdio.dev;
ret = ar8xxx_probe_switch(priv);
if (ret)
struct switch_dev dev;
struct mii_bus *mii_bus;
struct phy_device *phy;
+ struct device *pdev;
int (*get_port_link)(unsigned port);
if (!priv->chip_data)
return -ENOMEM;
- if (priv->phy->mdio.dev.of_node)
- ret = ar8327_hw_config_of(priv, priv->phy->mdio.dev.of_node);
+ if (priv->pdev->of_node)
+ ret = ar8327_hw_config_of(priv, priv->pdev->of_node);
else
ret = ar8327_hw_config_pdata(priv,
priv->phy->mdio.dev.platform_data);