diff options
| -rw-r--r-- | drivers/video/xilinxfb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/video/xilinxfb.c b/drivers/video/xilinxfb.c index 9eedf9673b7f..6ff1a91e9dfd 100644 --- a/drivers/video/xilinxfb.c +++ b/drivers/video/xilinxfb.c | |||
| @@ -428,11 +428,11 @@ static int xilinxfb_of_probe(struct platform_device *pdev) | |||
| 428 | #ifdef CONFIG_PPC_DCR | 428 | #ifdef CONFIG_PPC_DCR |
| 429 | else { | 429 | else { |
| 430 | int start; | 430 | int start; |
| 431 | start = dcr_resource_start(op->dev.of_node, 0); | 431 | start = dcr_resource_start(pdev->dev.of_node, 0); |
| 432 | drvdata->dcr_len = dcr_resource_len(op->dev.of_node, 0); | 432 | drvdata->dcr_len = dcr_resource_len(pdev->dev.of_node, 0); |
| 433 | drvdata->dcr_host = dcr_map(op->dev.of_node, start, drvdata->dcr_len); | 433 | drvdata->dcr_host = dcr_map(pdev->dev.of_node, start, drvdata->dcr_len); |
| 434 | if (!DCR_MAP_OK(drvdata->dcr_host)) { | 434 | if (!DCR_MAP_OK(drvdata->dcr_host)) { |
| 435 | dev_err(&op->dev, "invalid DCR address\n"); | 435 | dev_err(&pdev->dev, "invalid DCR address\n"); |
| 436 | return -ENODEV; | 436 | return -ENODEV; |
| 437 | } | 437 | } |
| 438 | } | 438 | } |
