summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/icom.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-01-23 01:42:19 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-01-23 01:42:19 +0400
commit4fbd269f1f9f8020dd9474b60e55c4f34d267b08 (patch)
tree61f6b7e35ea8f427f0c2c5c6e5f5e3244c311818 /drivers/tty/serial/icom.c
parent8bc661bfc0c2d221e209f4205bdaaf574d50100c (diff)
parent39669f3ae1d8a82d407a00e9e0058050997328da (diff)
downloadlinux-4fbd269f1f9f8020dd9474b60e55c4f34d267b08.tar.xz
Merge branch 'fixes' into tty-next
This was a "forgotten" branch of tty fixes that somehow didn't make it into my "main" branches, my fault. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/icom.c')
-rw-r--r--drivers/tty/serial/icom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/serial/icom.c b/drivers/tty/serial/icom.c
index d98e43348970..67423805e6d9 100644
--- a/drivers/tty/serial/icom.c
+++ b/drivers/tty/serial/icom.c
@@ -455,11 +455,11 @@ static void load_code(struct icom_port *icom_port)
for (index = 0; index < fw->size; index++)
new_page[index] = fw->data[index];
- release_firmware(fw);
-
writeb((char) ((fw->size + 16)/16), &icom_port->dram->mac_length);
writel(temp_pci, &icom_port->dram->mac_load_addr);
+ release_firmware(fw);
+
/*Setting the syncReg to 0x80 causes adapter to start downloading
the personality code into adapter instruction RAM.
Once code is loaded, it will begin executing and, based on