Skip to content

Commit

Permalink
[PATCH] PCI: fix up errors after dma bursting patch and CONFIG_PCI=n …
Browse files Browse the repository at this point in the history
…-- bug?

In the patch from:

http://www.uwsg.iu.edu/hypermail/linux/kernel/0506.3/0985.html

Is the the following line suppose inside the if CONFIG_PCI=n

  #define pci_dma_burst_advice(pdev, strat, strategy_parameter) do { } while (0)

Signed-off-by: Kumar Gala <kumar.gala@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Kumar Gala authored and Linus Torvalds committed Jul 29, 2005
1 parent 10f4338 commit a46e812
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions include/linux/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -971,6 +971,8 @@ static inline int pci_enable_wake(struct pci_dev *dev, pci_power_t state, int en

#define isa_bridge ((struct pci_dev *)NULL)

#define pci_dma_burst_advice(pdev, strat, strategy_parameter) do { } while (0)

#else

/*
Expand All @@ -985,9 +987,6 @@ static inline int pci_proc_domain(struct pci_bus *bus)
return 0;
}
#endif

#define pci_dma_burst_advice(pdev, strat, strategy_parameter) do { } while (0)

#endif /* !CONFIG_PCI */

/* these helpers provide future and backwards compatibility
Expand Down

0 comments on commit a46e812

Please sign in to comment.