of/platform: Handle of_populate drivers in notifier
authorPantelis Antoniou <pantelis.antoniou@konsulko.com>
Tue, 16 Dec 2014 17:45:26 +0000 (19:45 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 17 Feb 2015 02:56:15 +0000 (11:56 +0900)
commit3472bee304a345ccc66b5e09d469abe5acc20d0e
tree4fdc400b084a48558a2b31f030ed40704a595715
parent5e3b95753e328dc2468e2865cbe6ec93a87594ca
of/platform: Handle of_populate drivers in notifier

When using overlays with drivers calling of_populate the notifier
will try to create the device twice. Using the populated bit
before proceeding protects against this.

Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
Signed-off-by: Grant Likely <grant.likely@linaro.org>
(cherry picked from commit 15204ab1ebc5aba608cd19c83c37b98438b938b0)
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/of/platform.c