i2c: mxs: correctly setup speed for non devicetree
authorWolfram Sang <w.sang@pengutronix.de>
Sat, 8 Sep 2012 15:28:06 +0000 (17:28 +0200)
committerWolfram Sang <w.sang@pengutronix.de>
Wed, 12 Sep 2012 15:55:22 +0000 (17:55 +0200)
commit72ee734a6716aac5aaf336da70a811e308d2a84e
treebdf487c3eb7b9d539f605bbe063b6987624d9bfb
parentc076ada4e4aaf45e1a31ad6de7c6cce36081e045
i2c: mxs: correctly setup speed for non devicetree

Commit cd4f2d4 (i2c: mxs: Set I2C timing registers for mxs-i2c) only
covered the case for devicetree and made platform_data based boards
bail out with -EINVAL. Correctly support the latter one, too.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
drivers/i2c/busses/i2c-mxs.c