hv_balloon: Reorganize the probe function
authorDexuan Cui <decui@microsoft.com>
Fri, 14 Jun 2019 18:42:30 +0000 (18:42 +0000)
committerSasha Levin <sashal@kernel.org>
Tue, 30 Jul 2019 22:35:56 +0000 (18:35 -0400)
commit221f6df008ab39151600d4b09c85fcc730716bcb
treef04368d06a8ec84771640ddcbcebc236d7ed332f
parent1fed17df7e501b170f876b87eec11f930e3f1df5
hv_balloon: Reorganize the probe function

Move the code that negotiates with the host to a new function
balloon_connect_vsp() and improve the error handling.

This makes the code more readable and paves the way for the
support of hibernation in future.

Makes no real logic change here.

Signed-off-by: Dexuan Cui <decui@microsoft.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hv/hv_balloon.c