]> git.karo-electronics.de Git - linux-beck.git/commit
i2c: imx: don't change platform device id_entry directly
authorJingchang Lu <b35083@freescale.com>
Wed, 7 Aug 2013 09:05:38 +0000 (17:05 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 15 Aug 2013 14:12:14 +0000 (16:12 +0200)
commit0fc1347a7fdbcc25204f737998b824fc46662afd
treefde085cafd0e4c54036cc7e6f81ccbb7c8187e4e
parent46f2832b9f66b008fb813fe153f27794412fbc4f
i2c: imx: don't change platform device id_entry directly

The id_entry field should be changed by platform driver core,
driver should prevent changing it derectly. Use local variable
to save and extract platform_device_id info of the dts devices
instead.

Signed-off-by: Jingchang Lu <b35083@freescale.com>
Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-imx.c