Commit 7271df0b authored by Oleksij Rempel's avatar Oleksij Rempel Committed by David S. Miller

net: phy: at803x: remove probe and struct at803x_priv

struct at803x_priv is never used in this driver. So remove it
and the probe function allocating it.
Suggested-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarOleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7908d2ce
...@@ -63,10 +63,6 @@ MODULE_DESCRIPTION("Atheros 803x PHY driver"); ...@@ -63,10 +63,6 @@ MODULE_DESCRIPTION("Atheros 803x PHY driver");
MODULE_AUTHOR("Matus Ujhelyi"); MODULE_AUTHOR("Matus Ujhelyi");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
struct at803x_priv {
bool phy_reset:1;
};
struct at803x_context { struct at803x_context {
u16 bmcr; u16 bmcr;
u16 advertise; u16 advertise;
...@@ -232,20 +228,6 @@ static int at803x_resume(struct phy_device *phydev) ...@@ -232,20 +228,6 @@ static int at803x_resume(struct phy_device *phydev)
return phy_modify(phydev, MII_BMCR, BMCR_PDOWN | BMCR_ISOLATE, 0); return phy_modify(phydev, MII_BMCR, BMCR_PDOWN | BMCR_ISOLATE, 0);
} }
static int at803x_probe(struct phy_device *phydev)
{
struct device *dev = &phydev->mdio.dev;
struct at803x_priv *priv;
priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
if (!priv)
return -ENOMEM;
phydev->priv = priv;
return 0;
}
static int at803x_config_init(struct phy_device *phydev) static int at803x_config_init(struct phy_device *phydev)
{ {
int ret; int ret;
...@@ -364,7 +346,6 @@ static struct phy_driver at803x_driver[] = { ...@@ -364,7 +346,6 @@ static struct phy_driver at803x_driver[] = {
.phy_id = ATH8035_PHY_ID, .phy_id = ATH8035_PHY_ID,
.name = "Atheros 8035 ethernet", .name = "Atheros 8035 ethernet",
.phy_id_mask = AT803X_PHY_ID_MASK, .phy_id_mask = AT803X_PHY_ID_MASK,
.probe = at803x_probe,
.config_init = at803x_config_init, .config_init = at803x_config_init,
.set_wol = at803x_set_wol, .set_wol = at803x_set_wol,
.get_wol = at803x_get_wol, .get_wol = at803x_get_wol,
...@@ -378,7 +359,6 @@ static struct phy_driver at803x_driver[] = { ...@@ -378,7 +359,6 @@ static struct phy_driver at803x_driver[] = {
.phy_id = ATH8030_PHY_ID, .phy_id = ATH8030_PHY_ID,
.name = "Atheros 8030 ethernet", .name = "Atheros 8030 ethernet",
.phy_id_mask = AT803X_PHY_ID_MASK, .phy_id_mask = AT803X_PHY_ID_MASK,
.probe = at803x_probe,
.config_init = at803x_config_init, .config_init = at803x_config_init,
.link_change_notify = at803x_link_change_notify, .link_change_notify = at803x_link_change_notify,
.set_wol = at803x_set_wol, .set_wol = at803x_set_wol,
...@@ -393,7 +373,6 @@ static struct phy_driver at803x_driver[] = { ...@@ -393,7 +373,6 @@ static struct phy_driver at803x_driver[] = {
.phy_id = ATH8031_PHY_ID, .phy_id = ATH8031_PHY_ID,
.name = "Atheros 8031 ethernet", .name = "Atheros 8031 ethernet",
.phy_id_mask = AT803X_PHY_ID_MASK, .phy_id_mask = AT803X_PHY_ID_MASK,
.probe = at803x_probe,
.config_init = at803x_config_init, .config_init = at803x_config_init,
.set_wol = at803x_set_wol, .set_wol = at803x_set_wol,
.get_wol = at803x_get_wol, .get_wol = at803x_get_wol,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment