From: Dan Carpenter Date: Thu, 17 Nov 2016 01:54:40 +0000 (-0600) Subject: ARM: socfpga: checking the wrong variable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=96bc818397017aa919d3390af14ade39206322d5;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Moritz Fischer Acked-by: Alan Tull Signed-off-by: Greg Kroah-Hartman --- 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); }