Skip to contentSkip to conversation

vdpa: fix comment of vdpa_register_device()

PATCH New Jason Wang 1 participant 1 message Apr 13, 2020 virtio core

lore
Share & tools
lore

Jason Wang

author
#0 lore raw

PATCH 1/1 vdpa: fix comment of vdpa_register_device()

The function should be called only after a success calling for vdpa_alloc_device().

---
 drivers/vdpa/vdpa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/vdpa/vdpa.c +1 -1
index e9ed6a2b635b..ff6562f602e0 100644
@@ -116,7 +116,7 @@ EXPORT_SYMBOL_GPL(__vdpa_alloc_device);
 
 /**
  * vdpa_register_device - register a vDPA device
- * Callers must have a succeed call of vdpa_init_device() before.
+ * Callers must have a succeed call of vdpa_alloc_device() before.
  * @vdev: the vdpa device to be registered to vDPA bus
  *
  * Returns an error when fail to add to vDPA bus
Signature · 1 line
2.20.1