diff options
-rw-r--r-- | drivers/xen/xenbus/xenbus_probe.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/xen/xenbus/xenbus_probe.c b/drivers/xen/xenbus/xenbus_probe.c index 3479332113e9..abc12426ef0a 100644 --- a/drivers/xen/xenbus/xenbus_probe.c +++ b/drivers/xen/xenbus/xenbus_probe.c | |||
@@ -752,10 +752,7 @@ int register_xenstore_notifier(struct notifier_block *nb) | |||
752 | { | 752 | { |
753 | int ret = 0; | 753 | int ret = 0; |
754 | 754 | ||
755 | if (xenstored_ready > 0) | 755 | blocking_notifier_chain_register(&xenstore_chain, nb); |
756 | ret = nb->notifier_call(nb, 0, NULL); | ||
757 | else | ||
758 | blocking_notifier_chain_register(&xenstore_chain, nb); | ||
759 | 756 | ||
760 | return ret; | 757 | return ret; |
761 | } | 758 | } |