summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2013-08-08 11:05:57 +0200
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:42:24 +0900
commit424b035cb6592244e28fa8b07304708066e00c6b (patch)
treeb368d509a5e157c555716bc0dafe0ea242e87bda /include
parent29433055e97edb1f28a6c3f4d59c457a4ca23457 (diff)
downloadlinux-3.10-424b035cb6592244e28fa8b07304708066e00c6b.tar.gz
linux-3.10-424b035cb6592244e28fa8b07304708066e00c6b.tar.bz2
linux-3.10-424b035cb6592244e28fa8b07304708066e00c6b.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.h4
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);