drivers/pci/search.c: In function `pci_get_dev_by_id': drivers/pci/search.c:284: warning: passing arg 1 of `pci_dev_put' discards qualifiers from pointer target type The following patch removes the above compilation warning. Thanks. Signed-off-by: Rakib Mullick (rakib.mullick@xxxxxxxxx) --- linux-2.6.27-rc7.orig/drivers/pci/search.c 2008-09-28 20:50:50.000000000 +0600 +++ linux-2.6.27-rc7/drivers/pci/search.c 2008-09-28 20:44:25.000000000 +0600 @@ -281,7 +281,7 @@ static struct pci_dev *pci_get_dev_by_id if (dev) pdev = to_pci_dev(dev); if (from) - pci_dev_put(from); + pci_dev_put((struct pci_dev *)from); return pdev; } -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html