netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2.6.9-rc1-mm1 1/1] r8169: DAC support fix
@ 2004-08-30 22:00 Francois Romieu
  2004-08-31  7:19 ` Jeff Garzik
  0 siblings, 1 reply; 2+ messages in thread
From: Francois Romieu @ 2004-08-30 22:00 UTC (permalink / raw)
  To: jgarzik; +Cc: akpm, Jon Mason, netdev

Wrong unit for sizeof().

diff -puN drivers/net/r8169.c~r8169-120 drivers/net/r8169.c
--- linux-2.6.9-rc1/drivers/net/r8169.c~r8169-120	2004-08-30 23:39:04.000000000 +0200
+++ linux-2.6.9-rc1-fr/drivers/net/r8169.c	2004-08-30 23:39:20.000000000 +0200
@@ -1152,7 +1152,7 @@ rtl8169_init_board(struct pci_dev *pdev,
 
 	dev->features |= NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX;
 
-	if ((sizeof(dma_addr_t) > 32) && !pci_set_dma_mask(pdev, DMA_64BIT_MASK)) {
+	if ((sizeof(dma_addr_t) > 4) && !pci_set_dma_mask(pdev, DMA_64BIT_MASK)) {
 		tp->cp_cmd |= PCIDAC;
 		dev->features |= NETIF_F_HIGHDMA;
 	} else {

_

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

end of thread, other threads:[~2004-08-31  7:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-30 22:00 [PATCH 2.6.9-rc1-mm1 1/1] r8169: DAC support fix Francois Romieu
2004-08-31  7:19 ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).