diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2009-01-06 14:42:30 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-06 15:59:26 -0800 |
commit | 08cc6341cc04fad45c28995db796317b5b413045 (patch) | |
tree | dea4d15a5cc3fd78b3c05002e856ce574a3b7113 /drivers/video | |
parent | 729f77bbe515455ac474e6a4a3709858a01ef3da (diff) | |
download | op-kernel-dev-08cc6341cc04fad45c28995db796317b5b413045.zip op-kernel-dev-08cc6341cc04fad45c28995db796317b5b413045.tar.gz |
fb: carminefb: trivial annotation packing color register
drivers/video/carminefb.c:171:41: warning: cast to restricted __be32
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Cc: Sebastian Siewior <bigeasy@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/carminefb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/carminefb.c b/drivers/video/carminefb.c index c9b1913..c7ff3c1 100644 --- a/drivers/video/carminefb.c +++ b/drivers/video/carminefb.c @@ -168,7 +168,7 @@ static int carmine_setcolreg(unsigned regno, unsigned red, unsigned green, blue >>= 8; transp >>= 8; - ((u32 *)info->pseudo_palette)[regno] = be32_to_cpu(transp << 24 | + ((__be32 *)info->pseudo_palette)[regno] = cpu_to_be32(transp << 24 | red << 0 | green << 8 | blue << 16); return 0; } |