aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message/i2o/core.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/message/i2o/core.h')
-rw-r--r--drivers/message/i2o/core.h11
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 */
42extern struct i2o_controller *i2o_iop_alloc(void); 42extern struct i2o_controller *i2o_iop_alloc(void);
43extern 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 */
48static inline void i2o_iop_free(struct i2o_controller *c)
49{
50 i2o_pool_free(&c->in_msg);
51 kfree(c);
52}
44 53
45extern int i2o_iop_add(struct i2o_controller *); 54extern int i2o_iop_add(struct i2o_controller *);
46extern void i2o_iop_remove(struct i2o_controller *); 55extern void i2o_iop_remove(struct i2o_controller *);