mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-31 02:15:45 +01:00 
			
		
		
		
	ata: ahci-pci: Use scsi_ops to initialize ops
Without this fix, scsi-scan will cause a synchronous abort when accessing ops->scan. Signed-off-by: Masami Hiramatsu <masami.hiramatsu@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
		
				
					committed by
					
						 Tom Rini
						Tom Rini
					
				
			
			
				
	
			
			
			
						parent
						
							9fe79ca0ac
						
					
				
				
					commit
					ada6894feb
				
			| @@ -5,6 +5,7 @@ | |||||||
|  |  | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <ahci.h> | #include <ahci.h> | ||||||
|  | #include <scsi.h> | ||||||
| #include <dm.h> | #include <dm.h> | ||||||
| #include <pci.h> | #include <pci.h> | ||||||
|  |  | ||||||
| @@ -28,6 +29,7 @@ static const struct udevice_id ahci_pci_ids[] = { | |||||||
| U_BOOT_DRIVER(ahci_pci) = { | U_BOOT_DRIVER(ahci_pci) = { | ||||||
| 	.name	= "ahci_pci", | 	.name	= "ahci_pci", | ||||||
| 	.id	= UCLASS_AHCI, | 	.id	= UCLASS_AHCI, | ||||||
|  | 	.ops	= &scsi_ops, | ||||||
| 	.of_match = ahci_pci_ids, | 	.of_match = ahci_pci_ids, | ||||||
| 	.bind	= ahci_pci_bind, | 	.bind	= ahci_pci_bind, | ||||||
| 	.probe = ahci_pci_probe, | 	.probe = ahci_pci_probe, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user