summaryrefslogtreecommitdiffstats
path: root/drivers/fpga
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2016-11-16 19:54:40 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-11-17 08:14:55 +0100
commit96bc818397017aa919d3390af14ade39206322d5 (patch)
tree81f7e039ece2a3d4368139607466d63dda5af099 /drivers/fpga
parentee76bba7e547b386d641bff0b7408b598ec422a1 (diff)
downloadlinux-96bc818397017aa919d3390af14ade39206322d5.tar.gz
linux-96bc818397017aa919d3390af14ade39206322d5.tar.bz2
linux-96bc818397017aa919d3390af14ade39206322d5.zip
ARM: socfpga: checking the wrong variable
This is a cut and paste bug. We had intended to check "sysmgr". Fixes: e5f8efa5c8bf ("ARM: socfpga: fpga bridge driver support") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Moritz Fischer <moritz.fischer@ettus.com> Acked-by: Alan Tull <atull@opensource.altera.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/fpga')
-rw-r--r--drivers/fpga/altera-fpga2sdram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/fpga/altera-fpga2sdram.c b/drivers/fpga/altera-fpga2sdram.c
index 7ab358ed6c76..d4eeb74388da 100644
--- a/drivers/fpga/altera-fpga2sdram.c
+++ b/drivers/fpga/altera-fpga2sdram.c
@@ -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);
}