]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: fscm: Avoid collision on PC def when compiling for MIPS
authorBoris Brezillon <boris.brezillon@bootlin.com>
Mon, 9 Jul 2018 20:09:34 +0000 (22:09 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 18 Jul 2018 08:10:20 +0000 (10:10 +0200)
commit1b0c264657a1365cb1f9c25834689d27f34d72c7
tree64c1e9020e2fe97032333d8f1f51169c3367c078
parent46fb2160642e428688efab7982b22661e6cb7b1f
mtd: rawnand: fscm: Avoid collision on PC def when compiling for MIPS

We want to allow this driver to be selected when COMPILE_TEST=y, this
means the driver can be compiled for any arch, including MIPS. When
compiling this driver for MIPS, we end up with a collision on the 'PC'
macro definition (also defined in arch/mips/include/asm/ptrace.h).

Prefix the fsmc one with FSMC_ to avoid this problem.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/fsmc_nand.c