commit | 8fb83b142823cdd1f85f78dcf9e861e9033919f9 | [log] [tgz] |
---|---|---|
author | Jan Glauber <jglauber@cavium.com> | Mon May 22 13:09:21 2017 +0200 |
committer | Ulf Hansson <ulf.hansson@linaro.org> | Mon May 22 18:01:46 2017 +0200 |
tree | b95b866597e850c25967f03c6f6fe687b6f041b9 | |
parent | c2372c20425bd75a5527b3e2204059762190f6ca [diff] |
mmc: cavium: Fix probing race with regulator If the regulator probing is not yet finished this driver might catch a -EPROBE_DEFER. Returning after this condition did not remove the created platform device. On a repeated call to the probe function the of_platform_device_create fails. Calling of_platform_device_destroy after EPROBE_DEFER resolves this bug. Signed-off-by: Jan Glauber <jglauber@cavium.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>