platinumfb: fix misplaced parenthesis
authorRoel Kluin <roel.kluin@gmail.com>
Tue, 22 Sep 2009 23:47:04 +0000 (16:47 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 23 Sep 2009 14:39:50 +0000 (07:39 -0700)
commit6e3658f0df6f708202159302b4f3915d9b97b8dc
tree9763b0882b384cf755910cfc8b364422c67baf6c
parentd480ace08d5b59133575e672a0bd1c97b0f8400f
platinumfb: fix misplaced parenthesis

Since `+' has a higher precedence than the trinary operator `?', this
added `hres * (1 << color_mode)' to the boolean testing videomode and
depth.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Ville Syrjala <syrjala@sci.fi>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/platinumfb.c