sata_sil: make it buildable with DM_PCI
PATCH 1/1 sata_sil: make it buildable with DM_PCI
Linker complained about lack of pci_virt_to_mem function. Looks like driver was not ready for device model - I took solution from e1000.c driver.
Signed-off-by Marcin Juszkiewicz <[email protected]>
--- drivers/ata/sata_sil.c | 4 ++++ 1 file changed, 4 insertions(+)
ata/sata_sil.c +4 -0
@@ -27,7 +27,11 @@#include "sata_sil.h" +#ifdef CONFIG_DM_PCI +#define virt_to_bus (devno, v) dm_pci_virt_to_mem(devno, (void *) (v)) +#else #define virt_to_bus (devno, v) pci_virt_to_mem(devno, (void *) (v)) +#endif /* just compatible ahci_ops */ struct sil_ops {
Signature · 1 line
2.26.2
PATCH 1/1 sata_sil: make it buildable with DM_PCI
Quoted 5 lines · Marcin Juszkiewicz
Linker complained about lack of
pci_virt_to_memfunction. Looks like driver was not ready for device model - I took solution frome1000.cdriver.Signed-off-by Marcin Juszkiewicz <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200708/e20bfa6f/attachment.sig>