ARM: OMAP2+: GPMC: fix device size setup
authorYegor Yefremov <yegor_sub1@visionsystems.de>
Mon, 23 Jan 2012 07:32:23 +0000 (08:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Feb 2012 19:16:52 +0000 (11:16 -0800)
commit04712489fde65768a46fa4a4b240fff446c17aa6
tree4e97b112d7dd505285fbcbd6a83304275969f267
parenta4e4a6ee0cc6e069926d006b7a6efd73d33edfcc
ARM: OMAP2+: GPMC: fix device size setup

commit 8ef5d844cc3a644ea6f7665932a4307e9fad01fa upstream.

following statement can only change device size from 8-bit(0) to 16-bit(1),
but not vice versa:

regval |= GPMC_CONFIG1_DEVICESIZE(wval);

so as this field has 1 reserved bit, that could be used in future,
just clear both bits and then OR with the desired value

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mach-omap2/gpmc.c