projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
powerpc: Only include kup-radix.h for 64-bit Book3S
[linux-2.6-microblaze.git]
/
drivers
/
mfd
/
ab3100-core.c
diff --git
a/drivers/mfd/ab3100-core.c
b/drivers/mfd/ab3100-core.c
index
57723f1
..
ee71ae0
100644
(file)
--- a/
drivers/mfd/ab3100-core.c
+++ b/
drivers/mfd/ab3100-core.c
@@
-498,7
+498,7
@@
static ssize_t ab3100_get_set_reg(struct file *file,
int i = 0;
/* Get userspace string and assure termination */
- buf_size = min(
count,
(sizeof(buf)-1));
+ buf_size = min(
(ssize_t)count, (ssize_t)
(sizeof(buf)-1));
if (copy_from_user(buf, user_buf, buf_size))
return -EFAULT;
buf[buf_size] = 0;