From: Uwe Kleine-König Date: Thu, 17 Feb 2011 20:14:15 +0000 (+0100) Subject: net/fec: remove unused driver data X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9721dbb375a9db5f7f430601b7ec0393e1c59f82;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git net/fec: remove unused driver data Apart from not being used the first argument isn't even a struct platform_device *. Reported-by: Marc Kleine-Budde Signed-off-by: Uwe Kleine-König --- diff --git a/drivers/net/fec.c b/drivers/net/fec.c index 74798bee672e..634c0daeecec 100644 --- a/drivers/net/fec.c +++ b/drivers/net/fec.c @@ -983,8 +983,6 @@ static int fec_enet_mii_init(struct platform_device *pdev) for (i = 0; i < PHY_MAX_ADDR; i++) fep->mii_bus->irq[i] = PHY_POLL; - platform_set_drvdata(ndev, fep->mii_bus); - if (mdiobus_register(fep->mii_bus)) goto err_out_free_mdio_irq;