mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
KVM: s390: register flic ops dynamically
Using the new kvm_register_device_ops() interface makes us get rid of an #ifdef in common code. Cc: Gleb Natapov <[email protected]> Cc: Paolo Bonzini <[email protected]> Signed-off-by: Cornelia Huck <[email protected]> Signed-off-by: Will Deacon <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
This commit is contained in:
parent
c06a841bf3
commit
84877d9333
4 changed files with 3 additions and 6 deletions
|
|
@ -2285,10 +2285,6 @@ static struct kvm_device_ops *kvm_device_ops_table[KVM_DEV_TYPE_MAX] = {
|
|||
#ifdef CONFIG_KVM_VFIO
|
||||
[KVM_DEV_TYPE_VFIO] = &kvm_vfio_ops,
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_S390
|
||||
[KVM_DEV_TYPE_FLIC] = &kvm_flic_ops,
|
||||
#endif
|
||||
};
|
||||
|
||||
int kvm_register_device_ops(struct kvm_device_ops *ops, u32 type)
|
||||
|
|
|
|||
Loading…
Reference in a new issue