diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2015-12-04 22:49:17 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-12-09 01:25:01 +0100 |
commit | 14b6257a5f3dca3817b0826cb32967e3c2b935c8 (patch) | |
tree | caf824c65fb41b7678056fda79a40c180001b87c /include/asm-generic/qrwlock.h | |
parent | x86/platform/iosf_mbi: Remove duplicate definitions (diff) | |
download | linux-14b6257a5f3dca3817b0826cb32967e3c2b935c8.tar.xz linux-14b6257a5f3dca3817b0826cb32967e3c2b935c8.zip |
device core: add BUS_NOTIFY_DRIVER_NOT_BOUND notification
The users of BUS_NOTIFY_BIND_DRIVER have no chance to do any cleanup in case of
a probe failure. In the result there might be problems, such as some resources
that had been allocated will continue to be allocated and therefore lead to a
resource leak.
Introduce a new notification to inform the subscriber that ->probe() failed. Do
the same in case of failed device_bind_driver() call.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/asm-generic/qrwlock.h')
0 files changed, 0 insertions, 0 deletions