o ambassador: set_bit & friends require a long

Also make drain_rx_pools always available, it is called outside
#ifdef CONFIG_MODULE.
parent cebce9d8
...@@ -795,7 +795,6 @@ static inline void drain_rx_pool (amb_dev * dev, unsigned char pool) { ...@@ -795,7 +795,6 @@ static inline void drain_rx_pool (amb_dev * dev, unsigned char pool) {
return; return;
} }
#ifdef MODULE
static void drain_rx_pools (amb_dev * dev) { static void drain_rx_pools (amb_dev * dev) {
unsigned char pool; unsigned char pool;
...@@ -803,10 +802,7 @@ static void drain_rx_pools (amb_dev * dev) { ...@@ -803,10 +802,7 @@ static void drain_rx_pools (amb_dev * dev) {
for (pool = 0; pool < NUM_RX_POOLS; ++pool) for (pool = 0; pool < NUM_RX_POOLS; ++pool)
drain_rx_pool (dev, pool); drain_rx_pool (dev, pool);
return;
} }
#endif
static inline void fill_rx_pool (amb_dev * dev, unsigned char pool, int priority) { static inline void fill_rx_pool (amb_dev * dev, unsigned char pool, int priority) {
rx_in rx; rx_in rx;
......
...@@ -627,7 +627,7 @@ typedef struct { ...@@ -627,7 +627,7 @@ typedef struct {
struct amb_dev { struct amb_dev {
u8 irq; u8 irq;
u8 flags; long flags;
u32 iobase; u32 iobase;
u32 * membase; u32 * membase;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment