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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> --- 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux