diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2013-08-08 11:05:57 +0200 |
---|---|---|
committer | MyungJoo Ham <myungjoo.ham@samsung.com> | 2013-11-15 13:50:27 +0900 |
commit | 24773097d72de6063c612ffea60b814c914df977 (patch) | |
tree | 9ac0ef401914ea6cb2faab73ee45b8dc0a97daef /include | |
parent | 0ef8e7b01cbbbca10b0b289935a2ebac3603e948 (diff) | |
download | linux-3.10-24773097d72de6063c612ffea60b814c914df977.tar.gz linux-3.10-24773097d72de6063c612ffea60b814c914df977.tar.bz2 linux-3.10-24773097d72de6063c612ffea60b814c914df977.zip |
drivers: base: add notifier for failed driver bind
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/device.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index c0a12612532..1ce409fbc27 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -161,7 +161,7 @@ extern int bus_register_notifier(struct bus_type *bus, extern int bus_unregister_notifier(struct bus_type *bus, struct notifier_block *nb); -/* All 4 notifers below get called with the target struct device * +/* All 7 notifers below get called with the target struct device * * as an argument. Note that those functions are likely to be called * with the device lock held in the core, so be careful. */ @@ -174,6 +174,8 @@ extern int bus_unregister_notifier(struct bus_type *bus, unbound */ #define BUS_NOTIFY_UNBOUND_DRIVER 0x00000006 /* driver is unbound from the device */ +#define BUS_NOTIFY_BIND_FAILED 0x00000007 /* driver failed to bind + to device */ extern struct kset *bus_get_kset(struct bus_type *bus); extern struct klist *bus_get_device_klist(struct bus_type *bus); |