From: Jason Wang Date: Mon, 13 Apr 2020 09:37:38 +0000 (+0800) Subject: vdpa: fix comment of vdpa_register_device() X-Git-Tag: v5.15~4008^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ac8b85f9ef14a6b43ff52b71631231c9599d1442;p=platform%2Fkernel%2Flinux-starfive.git vdpa: fix comment of vdpa_register_device() The function should be called only after a success calling for vdpa_alloc_device(). Reported-by: Eli Cohen Signed-off-by: Jason Wang Link: https://lore.kernel.org/r/20200413093738.28467-1-jasowang@redhat.com Signed-off-by: Michael S. Tsirkin --- diff --git a/drivers/vdpa/vdpa.c b/drivers/vdpa/vdpa.c index e9ed6a2..ff6562f 100644 --- a/drivers/vdpa/vdpa.c +++ b/drivers/vdpa/vdpa.c @@ -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