Skip to contentSkip to conversation

2.6.x libata build fix

PATCH New Jeff Garzik 1 participant 1 message Nov 14, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.6.x libata build fix

Please do a

bk pull bk://gkernel.bkbits.net/libata-2.6

This will update the following files:

 drivers/scsi/sata_svw.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

through these ChangeSets:

<[email protected]> (04/11/14 1.2138)
[PATCH] fix sata_svw compile

Current BK doesn't compile with the G5 defconfig because the last libata updated missed to change sata_svw to the new conventions.

drivers/scsi/sata_svw.c +1 -1
diff -Nru a/drivers/scsi/sata_svw.c b/drivers/scsi/sata_svw.c
@@ -245,7 +245,7 @@
 		return 0;
 
 	/* Find the OF node for the PCI device proper */
-	np = pci_device_to_OF_node(ap->host_set->pdev);
+	np = pci_device_to_OF_node(to_pci_dev(ap->host_set->dev));
 	if (np == NULL)
 		return 0;