i2c: mpc: always determine I2C clock prescaler at runtime
authorArseny Solokha <asolokha@kb.kras.ru>
Wed, 10 Jan 2018 11:36:07 +0000 (18:36 +0700)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 15 Jan 2018 18:19:55 +0000 (19:19 +0100)
commit38a99bd7730efdd0ca6ce2531a2761778fca3293
treefd02362ea4d09962cb924e64d1c38695a8d6c7a6
parent7575a745f9ea12d7fdbc7cf02c862bad0a47c50f
i2c: mpc: always determine I2C clock prescaler at runtime

Remove the facility for setting the prescaler value at compile time
entirely. It was only used for two SoCs, duplicating the actual value
for one of them and setting sometimes bogus value for another. Make all
MPC8xxx SoCs obtain their actual I2C clock prescaler from a single place
in the code.

Changes from v2:
- left Device Tree compatibles in place

Signed-off-by: Arseny Solokha <asolokha@kb.kras.ru>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-mpc.c