Miquel van Smoorenburg wrote: > [PATCH 2/4] dpt_i2o: move from virt_to_bus/bus_to_virt to > dma_alloc_coherent > > Remove virt_to_bus/bus_to_virt code from dpt_i2o, and use > dma_alloc_coherent() / dma_free_coherent(). > > *========================================================================== >== */ > > +static inline u32 dma_high(dma_addr_t addr) > +{ > + return upper_32_bits(addr); > +} > + > +static inline u32 dma_low(dma_addr_t addr) > +{ > + return (u32)addr; > +} > + Just use these instructions directly, no need to introduce functions for that. Eike
Attachment:
signature.asc
Description: This is a digitally signed message part.