diff options
Diffstat (limited to 'arch/powerpc/kvm/booke.c')
-rw-r--r-- | arch/powerpc/kvm/booke.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c index c619d1b912c5..883e9db5f00c 100644 --- a/arch/powerpc/kvm/booke.c +++ b/arch/powerpc/kvm/booke.c | |||
@@ -573,7 +573,7 @@ int kvm_arch_vcpu_ioctl_translate(struct kvm_vcpu *vcpu, | |||
573 | return kvmppc_core_vcpu_translate(vcpu, tr); | 573 | return kvmppc_core_vcpu_translate(vcpu, tr); |
574 | } | 574 | } |
575 | 575 | ||
576 | static int kvmppc_booke_init(void) | 576 | int kvmppc_booke_init(void) |
577 | { | 577 | { |
578 | unsigned long ivor[16]; | 578 | unsigned long ivor[16]; |
579 | unsigned long max_ivor = 0; | 579 | unsigned long max_ivor = 0; |
@@ -618,14 +618,11 @@ static int kvmppc_booke_init(void) | |||
618 | flush_icache_range(kvmppc_booke_handlers, | 618 | flush_icache_range(kvmppc_booke_handlers, |
619 | kvmppc_booke_handlers + max_ivor + kvmppc_handler_len); | 619 | kvmppc_booke_handlers + max_ivor + kvmppc_handler_len); |
620 | 620 | ||
621 | return kvm_init(NULL, sizeof(struct kvm_vcpu), THIS_MODULE); | 621 | return 0; |
622 | } | 622 | } |
623 | 623 | ||
624 | static void __exit kvmppc_booke_exit(void) | 624 | void __exit kvmppc_booke_exit(void) |
625 | { | 625 | { |
626 | free_pages(kvmppc_booke_handlers, VCPU_SIZE_ORDER); | 626 | free_pages(kvmppc_booke_handlers, VCPU_SIZE_ORDER); |
627 | kvm_exit(); | 627 | kvm_exit(); |
628 | } | 628 | } |
629 | |||
630 | module_init(kvmppc_booke_init) | ||
631 | module_exit(kvmppc_booke_exit) | ||