aboutsummaryrefslogtreecommitdiffstats
path: root/ogp_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'ogp_spi.c')
-rw-r--r--ogp_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ogp_spi.c b/ogp_spi.c
index a994cb90..47a3d807 100644
--- a/ogp_spi.c
+++ b/ogp_spi.c
@@ -117,7 +117,7 @@ static int ogp_spi_init(const struct programmer_cfg *cfg)
uint32_t ogp_reg__ce;
uint32_t ogp_reg_sck;
- type = extract_programmer_param_str(NULL, "rom");
+ type = extract_programmer_param_str(cfg, "rom");
if (!type) {
msg_perr("Please use flashrom -p ogp_spi:rom=... to specify "