diff options
Diffstat (limited to 'drivers/message/i2o/core.h')
-rw-r--r-- | drivers/message/i2o/core.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/message/i2o/core.h b/drivers/message/i2o/core.h index edab686657f3..90628562851e 100644 --- a/drivers/message/i2o/core.h +++ b/drivers/message/i2o/core.h | |||
@@ -40,7 +40,16 @@ extern int i2o_device_parse_lct(struct i2o_controller *); | |||
40 | 40 | ||
41 | /* IOP */ | 41 | /* IOP */ |
42 | extern struct i2o_controller *i2o_iop_alloc(void); | 42 | extern struct i2o_controller *i2o_iop_alloc(void); |
43 | extern void i2o_iop_free(struct i2o_controller *); | 43 | |
44 | /** | ||
45 | * i2o_iop_free - Free the i2o_controller struct | ||
46 | * @c: I2O controller to free | ||
47 | */ | ||
48 | static inline void i2o_iop_free(struct i2o_controller *c) | ||
49 | { | ||
50 | i2o_pool_free(&c->in_msg); | ||
51 | kfree(c); | ||
52 | } | ||
44 | 53 | ||
45 | extern int i2o_iop_add(struct i2o_controller *); | 54 | extern int i2o_iop_add(struct i2o_controller *); |
46 | extern void i2o_iop_remove(struct i2o_controller *); | 55 | extern void i2o_iop_remove(struct i2o_controller *); |