Re: [PATCH 1/6] PCI legacy I/O port free driver (take2) - Add no_ioport flag into pci_dev

From: Greg KH
Date: Tue Feb 21 2006 - 15:59:18 EST


On Tue, Feb 21, 2006 at 03:28:01PM +0900, Kenji Kaneshige wrote:
> - if (pci_resource_flags(pdev, bar) & IORESOURCE_IO)
> + if (pci_resource_flags(pdev, bar) & IORESOURCE_IO) {
> + WARN_ON(pdev->no_ioport);

You might want to just print out a nicer warning to the user through the
syslog, using dev_warn() otherwise they are not going to know which
device and driver are having problems.

Also, people see the output of this, and think their kernel just died,
which is not the case here.

thanks,

greg k-h
-
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/