Skip to content

Commit

Permalink
ARM: socfpga: checking the wrong variable
Browse files Browse the repository at this point in the history
This is a cut and paste bug.  We had intended to check "sysmgr".

Fixes: e5f8efa ("ARM: socfpga: fpga bridge driver support")
Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Moritz Fischer <[email protected]>
Acked-by: Alan Tull <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
Dan Carpenter authored and gregkh committed Nov 17, 2016
1 parent ee76bba commit 96bc818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/fpga/altera-fpga2sdram.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 96bc818

Please sign in to comment.