diff options
| author | Andreas Werner <kernel@andy89.org> | 2015-03-22 17:35:52 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-04-19 10:11:08 +0200 |
| commit | 92fe878fdabf6b29d1550f40dc65eaa249c19e57 (patch) | |
| tree | 86e9016606bfabef5018b28ce3ca7188111e2100 /include/linux | |
| parent | 3a5845d8b9b6a68b9a1d50abd4739418fc17c855 (diff) | |
can: flexcan: Deferred on Regulator return EPROBE_DEFER
commit 555828ef45f825d6ee06559f0304163550eed380 upstream.
Return EPROBE_DEFER if Regulator returns EPROBE_DEFER
If the Flexcan driver is built into kernel and a regulator is used to
enable the CAN transceiver, the Flexcan driver may not use the regulator.
When initializing the Flexcan device with a regulator defined in the device
tree, but not initialized, the regulator subsystem returns EPROBE_DEFER, hence
the Flexcan init fails.
The solution for this is to return EPROBE_DEFER if regulator is not initialized
and wait until the regulator is initialized.
Signed-off-by: Andreas Werner <kernel@andy89.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
