diff options
-rw-r--r-- | drivers/net/ethernet/marvell/mv643xx_eth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/marvell/mv643xx_eth.c b/drivers/net/ethernet/marvell/mv643xx_eth.c index c35db735958f..7fb5677451f9 100644 --- a/drivers/net/ethernet/marvell/mv643xx_eth.c +++ b/drivers/net/ethernet/marvell/mv643xx_eth.c | |||
@@ -2641,7 +2641,7 @@ static int mv643xx_eth_shared_probe(struct platform_device *pdev) | |||
2641 | ret = mv643xx_eth_shared_of_probe(pdev); | 2641 | ret = mv643xx_eth_shared_of_probe(pdev); |
2642 | if (ret) | 2642 | if (ret) |
2643 | return ret; | 2643 | return ret; |
2644 | pd = pdev->dev.platform_data; | 2644 | pd = dev_get_platdata(&pdev->dev); |
2645 | 2645 | ||
2646 | msp->tx_csum_limit = (pd != NULL && pd->tx_csum_limit) ? | 2646 | msp->tx_csum_limit = (pd != NULL && pd->tx_csum_limit) ? |
2647 | pd->tx_csum_limit : 9 * 1024; | 2647 | pd->tx_csum_limit : 9 * 1024; |
@@ -2833,7 +2833,7 @@ static int mv643xx_eth_probe(struct platform_device *pdev) | |||
2833 | struct resource *res; | 2833 | struct resource *res; |
2834 | int err; | 2834 | int err; |
2835 | 2835 | ||
2836 | pd = pdev->dev.platform_data; | 2836 | pd = dev_get_platdata(&pdev->dev); |
2837 | if (pd == NULL) { | 2837 | if (pd == NULL) { |
2838 | dev_err(&pdev->dev, "no mv643xx_eth_platform_data\n"); | 2838 | dev_err(&pdev->dev, "no mv643xx_eth_platform_data\n"); |
2839 | return -ENODEV; | 2839 | return -ENODEV; |