public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 1/3] net: e1000: Remove unused bus_to_phys() macro
@ 2020-11-16 17:02 Stefan Roese
  2020-11-16 17:02 ` [PATCH 2/3] net: e1000: Use virt_to_phys() instead of pci_virt_to_mem() Stefan Roese
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Stefan Roese @ 2020-11-16 17:02 UTC (permalink / raw)
  To: u-boot

bus_to_phys() is defined but not referenced at all. This patch removes
it completely.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Cc: Aaron Williams <awilliams@marvell.com>
Cc: Chandrakala Chavva <cchavva@marvell.com>
---
 drivers/net/e1000.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/net/e1000.c b/drivers/net/e1000.c
index 8e6c755f64..2c57786ec9 100644
--- a/drivers/net/e1000.c
+++ b/drivers/net/e1000.c
@@ -47,10 +47,8 @@ tested on both gig copper and gig fiber boards
 
 #ifdef CONFIG_DM_ETH
 #define virt_to_bus(devno, v)	dm_pci_virt_to_mem(devno, (void *) (v))
-#define bus_to_phys(devno, a)	dm_pci_mem_to_phys(devno, a)
 #else
 #define virt_to_bus(devno, v)	pci_virt_to_mem(devno, (void *) (v))
-#define bus_to_phys(devno, a)	pci_mem_to_phys(devno, a)
 #endif
 
 #define E1000_DEFAULT_PCI_PBA	0x00000030
-- 
2.29.2

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-01-27 19:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-16 17:02 [PATCH 1/3] net: e1000: Remove unused bus_to_phys() macro Stefan Roese
2020-11-16 17:02 ` [PATCH 2/3] net: e1000: Use virt_to_phys() instead of pci_virt_to_mem() Stefan Roese
2021-01-27 19:21   ` Tom Rini
2020-11-16 17:02 ` [PATCH 3/3] net: e1000: Add missing address translations Stefan Roese
2021-01-27 19:21   ` Tom Rini
2021-01-27 19:21 ` [PATCH 1/3] net: e1000: Remove unused bus_to_phys() macro Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox