From: Stephen Rothwell Date: Mon, 28 Oct 2013 14:18:22 +0000 (+1100) Subject: video: xilinxfb: Fix for "Use standard variable name convention" X-Git-Tag: next-20131105~38^2~12 X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-linux.git;a=commitdiff_plain;h=33826d01d0f7e46eccd670e1ecdae1dff1cebfd2;hp=9b842a470ad2853049d8ddf97285debfc490041b video: xilinxfb: Fix for "Use standard variable name convention" Signed-off-by: Stephen Rothwell Tested-by: Michal Simek Signed-off-by: Tomi Valkeinen --- 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) #ifdef CONFIG_PPC_DCR else { int start; - start = dcr_resource_start(op->dev.of_node, 0); - drvdata->dcr_len = dcr_resource_len(op->dev.of_node, 0); - drvdata->dcr_host = dcr_map(op->dev.of_node, start, drvdata->dcr_len); + start = dcr_resource_start(pdev->dev.of_node, 0); + drvdata->dcr_len = dcr_resource_len(pdev->dev.of_node, 0); + drvdata->dcr_host = dcr_map(pdev->dev.of_node, start, drvdata->dcr_len); if (!DCR_MAP_OK(drvdata->dcr_host)) { - dev_err(&op->dev, "invalid DCR address\n"); + dev_err(&pdev->dev, "invalid DCR address\n"); return -ENODEV; } }