aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/fpga')
-rw-r--r--drivers/fpga/Kconfig2
-rw-r--r--drivers/fpga/altera-ps-spi.c2
-rw-r--r--drivers/fpga/stratix10-soc.c5
3 files changed, 3 insertions, 6 deletions
diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig
index 0bb7b5cd6cdc..c20445b867ae 100644
--- a/drivers/fpga/Kconfig
+++ b/drivers/fpga/Kconfig
@@ -104,7 +104,7 @@ config SOCFPGA_FPGA_BRIDGE
104 104
105config ALTERA_FREEZE_BRIDGE 105config ALTERA_FREEZE_BRIDGE
106 tristate "Altera FPGA Freeze Bridge" 106 tristate "Altera FPGA Freeze Bridge"
107 depends on ARCH_SOCFPGA && FPGA_BRIDGE 107 depends on FPGA_BRIDGE && HAS_IOMEM
108 help 108 help
109 Say Y to enable drivers for Altera FPGA Freeze bridges. A 109 Say Y to enable drivers for Altera FPGA Freeze bridges. A
110 freeze bridge is a bridge that exists in the FPGA fabric to 110 freeze bridge is a bridge that exists in the FPGA fabric to
diff --git a/drivers/fpga/altera-ps-spi.c b/drivers/fpga/altera-ps-spi.c
index 8c18beec6b57..678d0115f840 100644
--- a/drivers/fpga/altera-ps-spi.c
+++ b/drivers/fpga/altera-ps-spi.c
@@ -205,7 +205,7 @@ static int altera_ps_write_complete(struct fpga_manager *mgr,
205 struct fpga_image_info *info) 205 struct fpga_image_info *info)
206{ 206{
207 struct altera_ps_conf *conf = mgr->priv; 207 struct altera_ps_conf *conf = mgr->priv;
208 const char dummy[] = {0}; 208 static const char dummy[] = {0};
209 int ret; 209 int ret;
210 210
211 if (gpiod_get_value_cansleep(conf->status)) { 211 if (gpiod_get_value_cansleep(conf->status)) {
diff --git a/drivers/fpga/stratix10-soc.c b/drivers/fpga/stratix10-soc.c
index a1a09e04fab8..13851b3d1c56 100644
--- a/drivers/fpga/stratix10-soc.c
+++ b/drivers/fpga/stratix10-soc.c
@@ -508,14 +508,11 @@ static int __init s10_init(void)
508 return -ENODEV; 508 return -ENODEV;
509 509
510 np = of_find_matching_node(fw_np, s10_of_match); 510 np = of_find_matching_node(fw_np, s10_of_match);
511 if (!np) { 511 if (!np)
512 of_node_put(fw_np);
513 return -ENODEV; 512 return -ENODEV;
514 }
515 513
516 of_node_put(np); 514 of_node_put(np);
517 ret = of_platform_populate(fw_np, s10_of_match, NULL, NULL); 515 ret = of_platform_populate(fw_np, s10_of_match, NULL, NULL);
518 of_node_put(fw_np);
519 if (ret) 516 if (ret)
520 return ret; 517 return ret;
521 518