|
@@ -106,7 +106,7 @@ static int mdio_mux_gpio_probe(struct platform_device *pdev)
|
|
|
|
|
|
|
|
static int mdio_mux_gpio_remove(struct platform_device *pdev)
|
|
static int mdio_mux_gpio_remove(struct platform_device *pdev)
|
|
|
{
|
|
{
|
|
|
- struct mdio_mux_gpio_state *s = pdev->dev.platform_data;
|
|
|
|
|
|
|
+ struct mdio_mux_gpio_state *s = dev_get_platdata(&pdev->dev);
|
|
|
mdio_mux_uninit(s->mux_handle);
|
|
mdio_mux_uninit(s->mux_handle);
|
|
|
return 0;
|
|
return 0;
|
|
|
}
|
|
}
|