ia64/xen-unstable

changeset 1119:33e3adc72d8b

bitkeeper revision 1.745 (403b535dxe-hvv9dM0KddL1LhR9pdQ)

e1000_main.c, cciss.c:
Quieten unused device drivers in Xen.
author kaf24@scramble.cl.cam.ac.uk
date Tue Feb 24 13:36:29 2004 +0000 (2004-02-24)
parents ff30aea0a126
children 205bdb40d5e6
files xen/drivers/block/cciss.c xen/drivers/net/e1000/e1000_main.c
line diff
     1.1 --- a/xen/drivers/block/cciss.c	Tue Feb 24 12:07:53 2004 +0000
     1.2 +++ b/xen/drivers/block/cciss.c	Tue Feb 24 13:36:29 2004 +0000
     1.3 @@ -3415,10 +3415,10 @@ static struct pci_driver cciss_pci_drive
     1.4  */
     1.5  int __init cciss_init(void)
     1.6  {
     1.7 -
     1.8 -	printk(KERN_INFO DRIVER_NAME "\n");
     1.9 -	/* Register for out PCI devices */
    1.10 -	return pci_module_init(&cciss_pci_driver);
    1.11 +	int ret = pci_module_init(&cciss_pci_driver);
    1.12 +	if (ret >= 0)
    1.13 +		printk(KERN_INFO DRIVER_NAME "\n");
    1.14 +	return ret;
    1.15  }
    1.16  
    1.17  EXPORT_NO_SYMBOLS;
     2.1 --- a/xen/drivers/net/e1000/e1000_main.c	Tue Feb 24 12:07:53 2004 +0000
     2.2 +++ b/xen/drivers/net/e1000/e1000_main.c	Tue Feb 24 13:36:29 2004 +0000
     2.3 @@ -219,13 +219,12 @@ static int __init
     2.4  e1000_init_module(void)
     2.5  {
     2.6  	int ret;
     2.7 -	printk(KERN_INFO "%s - version %s\n",
     2.8 -	       e1000_driver_string, e1000_driver_version);
     2.9 -
    2.10 -	printk(KERN_INFO "%s\n", e1000_copyright);
    2.11  
    2.12  	ret = pci_module_init(&e1000_driver);
    2.13  	if(ret >= 0) {
    2.14 +		printk(KERN_INFO "%s - version %s\n",
    2.15 +		       e1000_driver_string, e1000_driver_version);
    2.16 +		printk(KERN_INFO "%s\n", e1000_copyright);
    2.17  		//register_reboot_notifier(&e1000_notifier_reboot);
    2.18  	}
    2.19  	return ret;