path: root/gfxnvidia.c
diff options
authorCarl-Daniel Hailfinger <>2010-07-06 09:55:48 +0000
committerCarl-Daniel Hailfinger <>2010-07-06 09:55:48 +0000
commit744132af4b9f629716394f9c22f6add71cc73ef9 (patch)
tree46de6c5dc108fc2868603fdc606e7328a83f1703 /gfxnvidia.c
parentd1be52d545329debd2128c1aa8685b31dfaa0a0e (diff)
Various places in the flashrom source feature custom parameter extraction from programmer_param
This led to wildly differing syntax for programmer parameters, and it also voids pretty much every assumption you could make about programmer_param. The latter is a problem for libflashrom. Use extract_param everywhere, clean up related code and make it more foolproof. Add two instances of exit(1) where we have no option to return an error. Remove six instances of exit(1) where returning an error was possible. WARNING: This changes programmer parameter syntax for a few programmers! Corresponding to flashrom svn r1070. Signed-off-by: Carl-Daniel Hailfinger <> Acked-by: Michael Karcher <>
Diffstat (limited to 'gfxnvidia.c')
1 files changed, 2 insertions, 2 deletions
diff --git a/gfxnvidia.c b/gfxnvidia.c
index 9bb382d..962ba1a 100644
--- a/gfxnvidia.c
+++ b/gfxnvidia.c
@@ -62,7 +62,8 @@ int gfxnvidia_init(void)
io_base_addr = pcidev_init(PCI_VENDOR_ID_NVIDIA, PCI_BASE_ADDRESS_0,
- gfx_nvidia, programmer_param);
+ gfx_nvidia);
io_base_addr += 0x300000;
msg_pinfo("Detected NVIDIA I/O base address: 0x%x.\n", io_base_addr);
@@ -87,7 +88,6 @@ int gfxnvidia_shutdown(void)
reg32 |= (1 << 0);
pci_write_long(pcidev_dev, 0x50, reg32);
- free(programmer_param);
return 0;
OpenPOWER on IntegriCloud