Re: [PATCH] drivers/ide: fix error return bugs, interface

From: Alexey Dobriyan
Date: Tue Oct 10 2006 - 09:50:38 EST


> --- a/drivers/ide/pci/cs5530.c
> +++ b/drivers/ide/pci/cs5530.c
> @@ -250,7 +250,9 @@ static unsigned int __devinit init_chips
> */
>
> pci_set_master(cs5530_0);
> - pci_set_mwi(cs5530_0);
> + if (pci_set_mwi(cs5530_0))
> + dev_printk(KERN_WARNING, &cs5530_0->dev,
> + "MWI enable failed\n");

Use dev_warn()

-
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/