ia64/xen-unstable

changeset 9196:aae274b4c1a7

Trivial fix for pcifront bringup.

From: Jan Beulich
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Mar 08 15:51:28 2006 +0100 (2006-03-08)
parents 766817372cab
children 42a1f6ffd0e9
files linux-2.6-xen-sparse/drivers/xen/pcifront/pci.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/pcifront/pci.c	Wed Mar 08 15:49:04 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/pcifront/pci.c	Wed Mar 08 15:51:28 2006 +0100
     1.3 @@ -18,8 +18,10 @@ int pcifront_connect(struct pcifront_dev
     1.4  
     1.5  	spin_lock(&pcifront_dev_lock);
     1.6  
     1.7 -	if (!pcifront_dev)
     1.8 +	if (!pcifront_dev) {
     1.9  		dev_info(&pdev->xdev->dev, "Installing PCI frontend\n");
    1.10 +		pcifront_dev = pdev;
    1.11 +	}
    1.12  	else {
    1.13  		dev_err(&pdev->xdev->dev, "PCI frontend already installed!\n");
    1.14  		err = -EEXIST;