projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
WorkStruct: make allyesconfig
[deliverable/linux.git]
/
drivers
/
message
/
i2o
/
exec-osm.c
diff --git
a/drivers/message/i2o/exec-osm.c
b/drivers/message/i2o/exec-osm.c
index a2350640384b5a75c09fc17a5f744c9a7fac9462..9e529d8dd5cbb8d140bca1453144bc85fb27fbd6 100644
(file)
--- a/
drivers/message/i2o/exec-osm.c
+++ b/
drivers/message/i2o/exec-osm.c
@@
-371,8
+371,10
@@
static int i2o_exec_remove(struct device *dev)
* new LCT and if the buffer for the LCT was to small sends a LCT NOTIFY
* again, otherwise send LCT NOTIFY to get informed on next LCT change.
*/
* new LCT and if the buffer for the LCT was to small sends a LCT NOTIFY
* again, otherwise send LCT NOTIFY to get informed on next LCT change.
*/
-static void i2o_exec_lct_modified(struct
i2o_exec_lct_notify_work *
work)
+static void i2o_exec_lct_modified(struct
work_struct *_
work)
{
{
+ struct i2o_exec_lct_notify_work *work =
+ container_of(_work, struct i2o_exec_lct_notify_work, work);
u32 change_ind = 0;
struct i2o_controller *c = work->c;
u32 change_ind = 0;
struct i2o_controller *c = work->c;
@@
-439,8
+441,7
@@
static int i2o_exec_reply(struct i2o_controller *c, u32 m,
work->c = c;
work->c = c;
- INIT_WORK(&work->work, (void (*)(void *))i2o_exec_lct_modified,
- work);
+ INIT_WORK(&work->work, i2o_exec_lct_modified);
queue_work(i2o_exec_driver.event_queue, &work->work);
return 1;
}
queue_work(i2o_exec_driver.event_queue, &work->work);
return 1;
}
@@
-460,13
+461,15
@@
static int i2o_exec_reply(struct i2o_controller *c, u32 m,
/**
* i2o_exec_event - Event handling function
/**
* i2o_exec_event - Event handling function
- * @
evt: Event which occurs
+ * @
work: Work item in occurring event
*
* Handles events send by the Executive device. At the moment does not do
* anything useful.
*/
*
* Handles events send by the Executive device. At the moment does not do
* anything useful.
*/
-static void i2o_exec_event(struct
i2o_event *evt
)
+static void i2o_exec_event(struct
work_struct *work
)
{
{
+ struct i2o_event *evt = container_of(work, struct i2o_event, work);
+
if (likely(evt->i2o_dev))
osm_debug("Event received from device: %d\n",
evt->i2o_dev->lct_data.tid);
if (likely(evt->i2o_dev))
osm_debug("Event received from device: %d\n",
evt->i2o_dev->lct_data.tid);
This page took
0.025156 seconds
and
5
git commands to generate.