i2c: nomadik: Add default configuration into the Nomadik I2C driver
authorLee Jones <lee.jones@linaro.org>
Tue, 7 Aug 2012 11:27:24 +0000 (12:27 +0100)
committerWolfram Sang <w.sang@pengutronix.de>
Sat, 18 Aug 2012 07:56:56 +0000 (09:56 +0200)
commitb007a3ef958413736a9e2ba698ad6675a9d519ab
tree90c3bff5b8c49677bb131681978d14be8a2c51b5
parentd9875690d9b89a866022ff49e3fcea892345ad92
i2c: nomadik: Add default configuration into the Nomadik I2C driver

At this moment in time there is only one known configuration for the
Nomadik I2C driver. By not holding that configuration in the driver
adds some unnecessary overhead in platform code. The configuration
has already been removed from platform code, this patch checks for any
over-riding configurations. If there aren't any, the default is used.

[LinusW says: "Right now this is causing boot regressions so we need it
badly..."]

Acked-by: srinidhi kasagar <srinidhi.kasagar@stericsson.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
drivers/i2c/busses/i2c-nomadik.c