Thread (1 message) 1 message, 1 author, 2012-07-30

[PATCH v7] ARM: davinci: i2c: add OF support

From: Heiko Schocher <hidden>
Date: 2012-07-30 09:31:05
Also in: linux-devicetree, linux-i2c

Hello Shubhrajyoti,

On 30.07.2012 10:42, Shubhrajyoti Datta wrote:
On Mon, Jul 30, 2012 at 12:51 PM, Heiko Schocher[off-list ref]  wrote:
quoted
add of support for the davinci i2c driver.
[...]
quoted
diff --git a/drivers/i2c/busses/i2c-davinci.c b/drivers/i2c/busses/i2c-davinci.c
index 79b4bcb..b6185dc 100644
--- a/drivers/i2c/busses/i2c-davinci.c
+++ b/drivers/i2c/busses/i2c-davinci.c
[...]
quoted
@@ -635,6 +633,12 @@ static struct i2c_algorithm i2c_davinci_algo = {
         .functionality  = i2c_davinci_func,
  };

+static const struct of_device_id davinci_i2c_of_match[] = {
+       {.compatible = "ti,davinci-i2c", },
+       {},
+};
+MODULE_DEVICE_TABLE(of, davinci_i2c_of_match);
+
Should this be protected under OF flag?
No, as I know, this is not needed.

bye,
Heiko
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help