diff options
author | Jan Beulich <jbeulich@novell.com> | 2011-07-19 14:14:08 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@novell.com> | 2011-07-19 14:14:08 +0100 |
commit | 9016c07e39fb82453028c95b042ad041b80e06d9 (patch) | |
tree | 94dfc529b35589a291a5e88f977b9c626726afac /xen/arch/x86/physdev.c | |
parent | 68fce206f6dba9981e8322269db49692c95ce250 (diff) | |
download | xen-9016c07e39fb82453028c95b042ad041b80e06d9.tar.gz xen-9016c07e39fb82453028c95b042ad041b80e06d9.tar.bz2 xen-9016c07e39fb82453028c95b042ad041b80e06d9.zip |
PCI: consolidate interface for adding devices
The functionality of pci_add_device_ext() can be easily folded into
pci_add_device(), and eliminates the need to change two functions for
future adjustments.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/arch/x86/physdev.c')
-rw-r--r-- | xen/arch/x86/physdev.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xen/arch/x86/physdev.c b/xen/arch/x86/physdev.c index dccabe7a11..4b0f4031e6 100644 --- a/xen/arch/x86/physdev.c +++ b/xen/arch/x86/physdev.c @@ -479,7 +479,7 @@ ret_t do_physdev_op(int cmd, XEN_GUEST_HANDLE(void) arg) if ( copy_from_guest(&manage_pci, arg, 1) != 0 ) break; - ret = pci_add_device(manage_pci.bus, manage_pci.devfn); + ret = pci_add_device(manage_pci.bus, manage_pci.devfn, NULL); break; } @@ -516,9 +516,9 @@ ret_t do_physdev_op(int cmd, XEN_GUEST_HANDLE(void) arg) pdev_info.is_virtfn = manage_pci_ext.is_virtfn; pdev_info.physfn.bus = manage_pci_ext.physfn.bus; pdev_info.physfn.devfn = manage_pci_ext.physfn.devfn; - ret = pci_add_device_ext(manage_pci_ext.bus, - manage_pci_ext.devfn, - &pdev_info); + ret = pci_add_device(manage_pci_ext.bus, + manage_pci_ext.devfn, + &pdev_info); break; } |