diff options
| -rw-r--r-- | drivers/net/ethernet/renesas/ravb_main.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ethernet/renesas/ravb_main.c b/drivers/net/ethernet/renesas/ravb_main.c index 744d7806a9ee..86449c357168 100644 --- a/drivers/net/ethernet/renesas/ravb_main.c +++ b/drivers/net/ethernet/renesas/ravb_main.c | |||
| @@ -1722,7 +1722,6 @@ static int ravb_set_gti(struct net_device *ndev) | |||
| 1722 | static int ravb_probe(struct platform_device *pdev) | 1722 | static int ravb_probe(struct platform_device *pdev) |
| 1723 | { | 1723 | { |
| 1724 | struct device_node *np = pdev->dev.of_node; | 1724 | struct device_node *np = pdev->dev.of_node; |
| 1725 | const struct of_device_id *match; | ||
| 1726 | struct ravb_private *priv; | 1725 | struct ravb_private *priv; |
| 1727 | enum ravb_chip_id chip_id; | 1726 | enum ravb_chip_id chip_id; |
| 1728 | struct net_device *ndev; | 1727 | struct net_device *ndev; |
| @@ -1754,8 +1753,7 @@ static int ravb_probe(struct platform_device *pdev) | |||
| 1754 | ndev->base_addr = res->start; | 1753 | ndev->base_addr = res->start; |
| 1755 | ndev->dma = -1; | 1754 | ndev->dma = -1; |
| 1756 | 1755 | ||
| 1757 | match = of_match_device(of_match_ptr(ravb_match_table), &pdev->dev); | 1756 | chip_id = (enum ravb_chip_id)of_device_get_match_data(&pdev->dev); |
| 1758 | chip_id = (enum ravb_chip_id)match->data; | ||
| 1759 | 1757 | ||
| 1760 | if (chip_id == RCAR_GEN3) | 1758 | if (chip_id == RCAR_GEN3) |
| 1761 | irq = platform_get_irq_byname(pdev, "ch22"); | 1759 | irq = platform_get_irq_byname(pdev, "ch22"); |
