From: Yang Zhang Date: Thu, 22 Nov 2012 02:20:23 +0000 (+0800) Subject: x86/xen : Fix the wrong check in pciback X-Git-Tag: upstream/snapshot3+hdmi~5748^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6337a23992826e68257fba51267cb6996439520d;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git x86/xen : Fix the wrong check in pciback Fix the wrong check in pciback. Signed-off-by: Yang Zhang Signed-off-by: Konrad Rzeszutek Wilk --- diff --git a/drivers/xen/xen-pciback/pciback.h b/drivers/xen/xen-pciback/pciback.h index a7def01..f72af87 100644 --- a/drivers/xen/xen-pciback/pciback.h +++ b/drivers/xen/xen-pciback/pciback.h @@ -124,7 +124,7 @@ static inline int xen_pcibk_add_pci_dev(struct xen_pcibk_device *pdev, static inline void xen_pcibk_release_pci_dev(struct xen_pcibk_device *pdev, struct pci_dev *dev) { - if (xen_pcibk_backend && xen_pcibk_backend->free) + if (xen_pcibk_backend && xen_pcibk_backend->release) return xen_pcibk_backend->release(pdev, dev); }