|
@@ -321,7 +321,6 @@ static int davinci_mdio_write(struct mii_bus *bus, int phy_id,
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
-#if IS_ENABLED(CONFIG_OF)
|
|
|
|
static int davinci_mdio_probe_dt(struct mdio_platform_data *data,
|
|
static int davinci_mdio_probe_dt(struct mdio_platform_data *data,
|
|
struct platform_device *pdev)
|
|
struct platform_device *pdev)
|
|
{
|
|
{
|
|
@@ -339,7 +338,6 @@ static int davinci_mdio_probe_dt(struct mdio_platform_data *data,
|
|
|
|
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
-#endif
|
|
|
|
|
|
|
|
#if IS_ENABLED(CONFIG_OF)
|
|
#if IS_ENABLED(CONFIG_OF)
|
|
static const struct davinci_mdio_of_param of_cpsw_mdio_data = {
|
|
static const struct davinci_mdio_of_param of_cpsw_mdio_data = {
|
|
@@ -374,7 +372,7 @@ static int davinci_mdio_probe(struct platform_device *pdev)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
}
|
|
}
|
|
|
|
|
|
- if (dev->of_node) {
|
|
|
|
|
|
+ if (IS_ENABLED(CONFIG_OF) && dev->of_node) {
|
|
const struct of_device_id *of_id;
|
|
const struct of_device_id *of_id;
|
|
|
|
|
|
ret = davinci_mdio_probe_dt(&data->pdata, pdev);
|
|
ret = davinci_mdio_probe_dt(&data->pdata, pdev);
|