[PATCH] pci: Fixing drivers/pci/search.c compilation warning.

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

 



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

[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux