[tip:tools/kvm] kvm tools: ioport arch init

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Commit-ID:  18358052f3f67143a9edadb57f244f4c83e4cf20
Gitweb:     http://git.kernel.org/tip/18358052f3f67143a9edadb57f244f4c83e4cf20
Author:     Sasha Levin <levinsasha928@xxxxxxxxx>
AuthorDate: Wed, 5 Sep 2012 10:32:00 +0200
Committer:  Pekka Enberg <penberg@xxxxxxxxxx>
CommitDate: Wed, 5 Sep 2012 16:22:38 +0300

kvm tools: ioport arch init

Move ioport arch init into ioport init, which is the logical place for that instead of a
random place in the global init code.

Signed-off-by: Sasha Levin <levinsasha928@xxxxxxxxx>
Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxx>
---
 tools/kvm/builtin-run.c |    2 --
 tools/kvm/ioport.c      |    2 ++
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/kvm/builtin-run.c b/tools/kvm/builtin-run.c
index ec783f6..44adf71 100644
--- a/tools/kvm/builtin-run.c
+++ b/tools/kvm/builtin-run.c
@@ -747,8 +747,6 @@ static int kvm_cmd_run_init(int argc, const char **argv)
 	if (r < 0)
 		pr_debug("symbol_init() failed with error %d\n", r);
 
-	ioport__setup_arch();
-
 	r = rtc__init(kvm);
 	if (r < 0) {
 		pr_err("rtc__init() failed with error %d\n", r);
diff --git a/tools/kvm/ioport.c b/tools/kvm/ioport.c
index 2208c15..f5fb246 100644
--- a/tools/kvm/ioport.c
+++ b/tools/kvm/ioport.c
@@ -184,6 +184,8 @@ error:
 
 int ioport__init(struct kvm *kvm)
 {
+	ioport__setup_arch();
+
 	return 0;
 }
 
--
To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Stable Commits]     [Linux Stable Kernel]     [Linux Kernel]     [Linux USB Devel]     [Linux Video &Media]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux