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)
committerGrant Likely <grant.likely@linaro.org>
Thu, 22 Jan 2015 15:36:55 +0000 (15:36 +0000)
commit15204ab1ebc5aba608cd19c83c37b98438b938b0
treec93f585003ba718061cbe066379206a3c1e761fc
parent3e7f7626fd49a9ffba8520a1a073f62929acad63
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>
drivers/of/platform.c