diff options
| author | Andre Przywara <[email protected]> | 2015-05-21 17:26:14 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2015-05-24 13:08:50 -0700 |
| commit | 49bb3c862cc418e3bc9464654e4ccb8ebb5cc2ec (patch) | |
| tree | 955cf1bc032750179e06436143ec3ae4513ef17a /tools/perf/scripts | |
| parent | 7798edeebc8101b1e8b1d7fb9eee3710f0877cbc (diff) | |
drivers: PL011: avoid potential unregister_driver call
Although we care about not unregistering the driver if there are
still ports connected during the .remove callback, we do miss this
check in the pl011_probe function. So if the current port allocation
fails, but there are other ports already registered, we will kill
those.
So factor out the port removal into a separate function and use that
in the probe function, too.
Signed-off-by: Andre Przywara <[email protected]>
Tested-by: Mark Langsdorf <[email protected]>
Tested-by: Naresh Bhat <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions