video: cfb_console: fix definition and usage of CURSOR_xxx macros
authorTimur Tabi <timur@freescale.com>
Fri, 27 Aug 2010 20:45:47 +0000 (15:45 -0500)
committerAnatolij Gustschin <agust@denx.de>
Wed, 15 Sep 2010 22:44:06 +0000 (00:44 +0200)
commit6561863678822847be92c3bd06ae1d64acca4f6a
treeaf676a9344b28f73f93db31cfe5e8a100e7016d8
parenta12555c02d716f62aa1ec4764cf1c42bfeecf07d
video: cfb_console: fix definition and usage of CURSOR_xxx macros

The CURSOR_ON, CURSOR_OFF, and CURSOR_SET macros are defined incorrectly.  If
cursor support is disabled, then these macros are defined to nothing, but
then they are used like this:

if (console_col < CONSOLE_COLS)
CURSOR_OFF
console_row++;

which was compiled like this:

if (console_col < CONSOLE_COLS)
console_row++;

This is obviously not what was intended.

Signed-off-by: Timur Tabi <timur@freescale.com>
Acked-by: Detlev Zundel <dzu@denx.de>
drivers/video/cfb_console.c