Skip to content

Commit 5f12c5e

Browse files
Scott WoodWolfram Sang
authored andcommitted
i2c: cpm: Fix build by adding of_address.h and of_irq.h
Fixes a build break due to the undeclared use of irq_of_parse_and_map() and of_iomap(). This build break was apparently introduced while the driver was unbuildable due to the bug fixed by 62c19c9 ("i2c: Remove usage of orphaned symbol OF_I2C"). When 62c19c was added in v3.14-rc7, the driver was enabled again, breaking the powerpc mpc85xx_defconfig and mpc85xx_smp_defconfig. 62c19c is marked for stable, so this should go there as well. Reported-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de> Cc: stable@kernel.org
1 parent dcb99fd commit 5f12c5e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/i2c/busses/i2c-cpm.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
#include <linux/i2c.h>
4040
#include <linux/io.h>
4141
#include <linux/dma-mapping.h>
42+
#include <linux/of_address.h>
4243
#include <linux/of_device.h>
44+
#include <linux/of_irq.h>
4345
#include <linux/of_platform.h>
4446
#include <sysdev/fsl_soc.h>
4547
#include <asm/cpm.h>

0 commit comments

Comments
 (0)