summaryrefslogtreecommitdiffstats
path: root/drivers/serial/crisv10.c
diff options
context:
space:
mode:
authorJesper Nilsson <jespern@axis.com>2010-10-28 12:04:55 +0200
committerJesper Nilsson <jespern@axis.com>2010-10-28 12:13:26 +0200
commit94479c017b58f69e2304d88c2826ba445cd4cd99 (patch)
tree930dd4a6cf0f21f7d314800ef82d7bc93207df35 /drivers/serial/crisv10.c
parentb5153163ed580e00c67bdfecb02b2e3843817b3e (diff)
downloadblackbird-obmc-linux-94479c017b58f69e2304d88c2826ba445cd4cd99.tar.gz
blackbird-obmc-linux-94479c017b58f69e2304d88c2826ba445cd4cd99.zip
Add missing "struct" to in sizeof.
Lead to a compile error when the struct was no longer typedef'd. Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Diffstat (limited to 'drivers/serial/crisv10.c')
-rw-r--r--drivers/serial/crisv10.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/crisv10.c b/drivers/serial/crisv10.c
index c856905bb3bd..20402c604c10 100644
--- a/drivers/serial/crisv10.c
+++ b/drivers/serial/crisv10.c
@@ -3731,7 +3731,7 @@ rs_ioctl(struct tty_struct *tty, struct file * file,
/* This is the ioctl to get RS485 data from user-space */
if (copy_to_user((struct serial_rs485 *) arg,
rs485data,
- sizeof(serial_rs485)))
+ sizeof(struct serial_rs485)))
return -EFAULT;
break;
}
OpenPOWER on IntegriCloud