static int mdio_mux_iproc_remove(struct platform_device *pdev) { struct iproc_mdiomux_desc *md = platform_get_drvdata(pdev); mdio_mux_uninit(md->mux_handle); mdiobus_unregister(md->mii_bus); clk_disable_unprepare(md->core_clk); return 0; }
static int mdio_mux_iproc_remove(struct platform_device *pdev) { struct iproc_mdiomux_desc *md = dev_get_platdata(&pdev->dev); mdio_mux_uninit(md->mux_handle); mdiobus_unregister(md->mii_bus); mdiobus_free(md->mii_bus); return 0; }