ARM: socfpga: checking the wrong variable
Subsystems (2)
PATCH 1/1 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 <[email protected]>
drivers/fpga/altera-fpga2sdram.c +1 -1
@@ -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); }
Hi Dan,
Quoted 4 lines · Dan Carpenter
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 <[email protected]>
Acked-by Moritz Fischer <[email protected]>
Quoted 6 lines
drivers/fpga/altera-fpga2sdram.c +0
-0
drivers/fpga/altera-fpga2sdram.c static int alt_fpga_bridge_probe(struct platform_device *pdev) · line 129
Quoted 8 lines
drivers/fpga/altera-fpga2sdram.c +1
-1@@ -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); }
Thanks,
Moritz
atull
Acked-byQuoted 7 lines · Moritz Fischer
Hi Dan,
Quoted 4 lines · Dan Carpenter
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 <[email protected]>Acked-by Moritz Fischer <[email protected]>
Hi Dan,
Acked-by Alan Tull <[email protected]>
Thanks for catching this!
Alan
Quoted 20 lines
Quoted 7 lines
drivers/fpga/altera-fpga2sdram.c +0
-0drivers/fpga/altera-fpga2sdram.c static int alt_fpga_bridge_probe(struct platform_device *pdev) · line 129
Quoted 8 lines
drivers/fpga/altera-fpga2sdram.c +1
-1@@ -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); }Thanks,
Moritz