Skip to contentSkip to conversation

One bug fix for FPGA

PATCH In review Alan Tull 2 participants 3 messages Nov 17, 2016

Subsystems (2)
lore
Share & tools
lore

Alan Tull

author
#0 lore raw

cover One bug fix for FPGA

Hi Greg,

Can you take this patch?

Thanks,
Alan

Dan Carpenter (1):
ARM: socfpga: checking the wrong variable

 drivers/fpga/altera-fpga2sdram.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.7.4
author
#1 lore raw

PATCH 1/1 ARM: socfpga: checking the wrong variable

From: Dan Carpenter <[email protected]>

This is a cut and paste bug. We had intended to check "sysmgr".

Fixes e5f8efa5c8bf ("ARM: socfpga: fpga bridge driver support")
---
 drivers/fpga/altera-fpga2sdram.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/fpga/altera-fpga2sdram.c +1 -1
index 7ab358e..d4eeb74 100644
@@ -123,7 +123,7 @@ static int alt_fpga_bridge_probe(struct platform_device *pdev)
 	}
 
 	sysmgr = syscon_regmap_lookup_by_compatible("altr,sys-mgr");
-	if (IS_ERR(priv->sdrctl)) {
+	if (IS_ERR(sysmgr)) {
 		dev_err(dev, "regmap for altr,sys-mgr lookup failed.\n");
 		return PTR_ERR(sysmgr);
 	}
Signature · 1 line
2.7.4