Re: [patch 14/15] drivers/block/*: convert to pci_register_driver

From: Francois Romieu
Date: Sat Mar 05 2005 - 18:45:03 EST


domen@xxxxxxxxxxxx <domen@xxxxxxxxxxxx> :
[...]
> diff -puN drivers/block/umem.c~pci_register_driver-drivers_block drivers/block/umem.c
> --- kj/drivers/block/umem.c~pci_register_driver-drivers_block 2005-03-05 16:12:16.000000000 +0100
> +++ kj-domen/drivers/block/umem.c 2005-03-05 16:12:16.000000000 +0100
> @@ -1185,7 +1185,7 @@ int __init mm_init(void)
>
> printk(KERN_INFO DRIVER_VERSION " : " DRIVER_DESC "\n");
>
> - retval = pci_module_init(&mm_pci_driver);
> + retval = pci_register_driver(&mm_pci_driver);
> if (retval)
> return -ENOMEM;

The return code is fine and does not need to be overwritten.
Imho it could be considered to be part of the patch.

--
Ueimor
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/