video via: fix iomem access
authorStephen Hemminger <shemminger@vyatta.com>
Thu, 3 Mar 2011 17:59:01 +0000 (09:59 -0800)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Wed, 9 Mar 2011 17:04:12 +0000 (17:04 +0000)
commitb65d6040e3a7cd75d9287f7ddfd115e85fde4b44
tree398b234ea6b9501a2e9ab271c687787fa6befaf8
parenta625e305edd8e3ac08888a9b52981205b68cdb0e
video via: fix iomem access

This driver is not respecting the iomem memory space restrictions
and does direct access. This works on x86 but is non-portable and
should not be done.  Converted memcpy() of 2 to readw.
Last post increment of romptr was unnecessary since pointer never
used after that.

Found by sparse, compile tested only.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/via/lcd.c