]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mmc: cavium: Fix probing race with regulator
authorJan Glauber <jglauber@cavium.com>
Mon, 22 May 2017 11:09:21 +0000 (13:09 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 22 May 2017 16:01:46 +0000 (18:01 +0200)
commit8fb83b142823cdd1f85f78dcf9e861e9033919f9
treeb95b866597e850c25967f03c6f6fe687b6f041b9
parentc2372c20425bd75a5527b3e2204059762190f6ca
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>
drivers/mmc/host/cavium-octeon.c
drivers/mmc/host/cavium-thunderx.c