I pulled the latest and tried to build for an RT5350. I received this error...
CC drivers/i2c/busses/i2c-ralink.o
drivers/i2c/busses/i2c-ralink.c:31:26: fatal error: linux/of_i2c.h: No such file or directory
#include <linux/of_i2c.h>
^
compilation terminated.
Then, I found this (http://patchwork.ozlabs.org/patch/108739/):
All callers of of_i2c_register_devices are immediately preceded by a call
to i2c_add_adapter or i2c_add_numbered_adapter. Add call to
of_i2c_register_devices and remove all other callers.This causes a module dependency loop that is resolved by the next commit.
To get the build to complete I added this patch:
--- linux-3.14.18/drivers/i2c/busses/i2c-ralink.c.orig 2014-10-09 21:08:47.597984032 -0500
+++ linux-3.14.18/drivers/i2c/busses/i2c-ralink.c 2014-10-09 21:09:08.309984969 -0500
@@ -28,7 +28,6 @@
#include <linux/platform_device.h>
#include <linux/i2c.h>
#include <linux/io.h>
-#include <linux/of_i2c.h>
#include <linux/err.h>
#include <asm/mach-ralink/ralink_regs.h>
@@ -246,8 +245,6 @@ static int rt_i2c_probe(struct platform_
if (ret)
return ret;
- of_i2c_register_devices(adapter);
-
platform_set_drvdata(pdev, adapter);
dev_info(&pdev->dev, "loaded\n");
I'm reporting this in hopes someone can verify the fix and properly submit the patch.
Thanks,
Ryan