[PATCH] avr32: fix build error in atstk1006_defconfig
Håvard Skinnemoen
havard at skinnemoen.net
Tue Oct 16 14:04:44 EDT 2012
On Tue, Oct 16, 2012 at 12:19 AM, Josh Wu <josh.wu at atmel.com> wrote:
> fixed the following compile error when use avr32 atstk1006_defconfig:
> drivers/mtd/nand/atmel_nand.c: In function 'pmecc_err_location':
> drivers/mtd/nand/atmel_nand.c:639: error: implicit declaration of function 'writel_relaxed'
>
> which was introduced by commit 1c7b874d33b463 ("mtd: at91: atmel_nand: add Programmable Multibit ECC controller support").
> The PMECC for nand flash code uses writel_relaxed(). But in avr32, there is no macro "writel_relaxed" defined. This patch add writex_relaxed macro definitions.
>
> Signed-off-by: Josh Wu <josh.wu at atmel.com>
Acked-by: Havard Skinnemoen <havard at skinnemoen.net>
I think it's OK to just forward to write[bwl] -- the relaxed variants
merely provide fewer ordering guarantees than the non-relaxed
variants. The worst that could happen is a small performance hit (and
on AVR32, even that is highly unlikely).
Havard
More information about the linux-mtd
mailing list