diff options
author | Johan Hovold <johan@kernel.org> | 2016-11-17 16:40:00 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-18 18:48:53 (GMT) |
commit | a4e32b0d0a26ba2f2ba1c65bd403d06ccc1df29c (patch) | |
tree | 8cb911578d56f340e4e4fb4912bf96e111e43af2 /lib/decompress_unlzo.c | |
parent | 86e1d5adcef961eb383ce4eacbe0ef22f06e2045 (diff) | |
download | linux-a4e32b0d0a26ba2f2ba1c65bd403d06ccc1df29c.tar.xz |
net: ethernet: ti: cpsw: fix deferred probe
Make sure to deregister all child devices also on probe errors to avoid
leaks and to fix probe deferral:
cpsw 4a100000.ethernet: omap_device: omap_device_enable() called from invalid state 1
cpsw 4a100000.ethernet: use pm_runtime_put_sync_suspend() in driver?
cpsw: probe of 4a100000.ethernet failed with error -22
Add generic helper to undo the effects of cpsw_probe_dt(), which will
also be used in a follow-on patch to fix further leaks that have been
introduced more recently.
Note that the platform device is now runtime-resumed before registering
any child devices in order to make sure that it is synchronously
suspended after having deregistered the children in the error path.
Fixes: 1fb19aa730e4 ("net: cpsw: Add parent<->child relation support
between cpsw and mdio")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/decompress_unlzo.c')
0 files changed, 0 insertions, 0 deletions