summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/or51211.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/frontends/or51211.c')
-rw-r--r--drivers/media/dvb/frontends/or51211.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/or51211.c b/drivers/media/dvb/frontends/or51211.c
index 26bed61..2bf124b 100644
--- a/drivers/media/dvb/frontends/or51211.c
+++ b/drivers/media/dvb/frontends/or51211.c
@@ -437,10 +437,10 @@ static int or51211_init(struct dvb_frontend* fe)
}
ret = or51211_load_firmware(fe, fw);
+ release_firmware(fw);
if (ret) {
printk(KERN_WARNING "or51211: Writing firmware to "
"device failed!\n");
- release_firmware(fw);
return ret;
}
printk(KERN_INFO "or51211: Firmware upload complete.\n");
OpenPOWER on IntegriCloud