]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: Mark instantiated device nodes with OF_POPULATE
authorPantelis Antoniou <pantelis.antoniou@konsulko.com>
Sat, 24 Jan 2015 07:16:29 +0000 (09:16 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 9 Jul 2015 20:25:54 +0000 (22:25 +0200)
commit4f001fd30145a6a8f72f9544c982cfd3dcb7c6df
tree5d21ee5c7ded9bc74c2f1448bd045f71c53d312f
parenteb8173e3d7b94664ecd3acf34942c9c9d6f6cb73
i2c: Mark instantiated device nodes with OF_POPULATE

Mark (and unmark) device nodes with the POPULATE flag as appropriate.
This is required to avoid multi probing when using I2C and device
overlays containing a mux.
This patch is also more careful with the release of the adapter device
which caused a deadlock with muxes, and does not break the build
on !OF since the node flag accessors are not defined then.

Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-core.c